Forum Discussion
mrslyfox
9 years agoHelper II
TopN Others
Hello Have two tables D_Customer and F_Invoice (one to many rationship) added to D_Customer calculated column RANK_M2 = RANKX(F_Invoice,SUMX(F_Invoice,F_Invoice[M2])) as result new column showing ...
- 9 years ago
Hi mrslyfox,
Transform the RANK column to this measure:
Rank = RANKX(ALLSELECTED(D_Customer[Customer]),CALCULATE(sum(F_Invoice[M2])))
Then add a measure for others with the following formula
Others Total = IF( ISBLANK(CALCULATE(sum(F_Invoice[M2]),FILTER(all(D_Customer[Customer]),[Rank]> 20))),0,CALCULATE(sum(F_Invoice[M2]),FILTER(all(D_Customer[Customer]),[Rank]> 20)))
Add you TodayMoth = 1 in your visual filter and this should work.
Regards,
MFelix