Forum Discussion
Kitkat
8 years agoFrequent Visitor
Summarize and Rank by multiple columns and rows
Total Revenue Client Name Year Month Revenue Stream -1625.7 ABC 2016 10 1 -11693.9 DEF 2016 10 2 -598.79 GHI 2016 10 3 -523.52 JKL 2016 10 1 -84.85 MNO 2016 ...
- 8 years ago
You may use SUMMARIZE Function to add a calculated table and then use RANKX Function to add a calculated column. The post below is for your reference.
- 8 years ago
create a summarize table, go to modelling tab, click new table and add following:
TableSummarize = SUMMARIZECOLUMNS(Table1[Client Name], Table1[Revenue Stream], "Total Revenue", SUM(Table1[Total Revenue]) )
Now in above table, add new calculated field for rank:
Rank = RANKX(Filter(TableSummarize, TableSummarize[Revenue Stream] = EARLIER(TableSummarize[Revenue Stream])),TableSummarize[Total Revenue],,DESC,Dense)
Kitkat
8 years agoFrequent Visitor
I have tried the following function:
Summarize
Please advise where my error is
Thanks kindly and truly appreciate the help
Cheers
Kat
parry2k
8 years agoSuper User
create a summarize table, go to modelling tab, click new table and add following:
TableSummarize = SUMMARIZECOLUMNS(Table1[Client Name], Table1[Revenue Stream], "Total Revenue", SUM(Table1[Total Revenue]) )
Now in above table, add new calculated field for rank:
Rank = RANKX(Filter(TableSummarize, TableSummarize[Revenue Stream] = EARLIER(TableSummarize[Revenue Stream])),TableSummarize[Total Revenue],,DESC,Dense)
- Naveen_SV5 years agoHelper IV
EARLIER/EARLIEST refers to an earlier row context which doesn't exist.
i am getting this error