Forum Discussion
Summarize and Rank by multiple columns and rows
- 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)
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.
I have tried the following function:
Summarize
Please advise where my error is
Thanks kindly and truly appreciate the help
Cheers
Kat
- parry2k8 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)
- Kitkat8 years agoFrequent Visitor
Hi parry2k- Thank you kindly the summarize table worked, however for my Rank all i get is a #1 for each- im trying to get top 50 clients within each stream by revenue, do i use asc,Skip instead?
- parry2k8 years agoSuper User
can you share your rank formula, i ranked based on revenue stream, not sure if that is what you were looking for.
- Naveen_SV5 years agoHelper IV
EARLIER/EARLIEST refers to an earlier row context which doesn't exist.
i am getting this error