Question: write a function Percentages _ CSA using a LAMBDA that inputs a column of names ( e . g . , season names ) and
write a function PercentagesCSA using a LAMBDA
that inputs a column of names eg season names and produces a row of percentages for the
alphabetically sorted unique names. The percentages specify the fraction of total rows containing
a unique name eg Winter Test your function with the Season data in the Festivals worksheet.
Notice that the length of the row of percentages depends on the data and needs to be computed
dynamically. Use two implementations to write your function PercentagesCSA, the first using
FILTER and the second using the function PercentagesfromtableCSA given below. We
give you almost a complete FILTER solution because FILTER will be covered in detail in the next
topic. Call the function with the FILTER implementation PercentagesFILTERCSA. Call the
function with the table as an intermediate result PercentagestableCSA.
LAMBDANamesLET
SortedUnique,SORTUNIQUEUNKNOWN
CountOne,LAMBDAsROWSFILTERNamesNamess
CountsFILTER,MAPSortedUnique UNKNOWN
Percentages,CountsFILTERSUMUNKNOWN
Show,IFERRORHSTACKSortedUniqueCountsFILTER,Percentages
Result,TRANSPOSECHOOSECOLSShow
ResultWinter;"Summer";"Winter";"Spring";"Fall";"Winter";"Summer"
You complete this LAMBDA by changing UNKNOWN UNKNOWN UNKNOWN to the
correct names. For example, UNKNOWN needs to be the formal argument Names.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
