Forum Discussion
Diptarup
2 years agoHelper II
Getting Sum except TOP 10 rank
I have table, wherein I need to calculate the value of all products which are ranked in Top 10 .
Table below :-
So the value I am looking for is 38.46.
I have used a meaure to calculate the rank, which is given below:-
Top10 =
Var VendorRank = RANKX(ALL(Table1[Products]),[Amount (Recal)],,DESC)
Return
IF(VendorRank>10,[Amount (Recal)],BLANK())
What is happening, is that I am getting the Overall value of 41.61 and not 38.46. Any help is highly appreciated.
Table 1
| Products | Value |
| A | 15.00 |
| B | 10.96 |
| C | 2.82 |
| D | 2.45 |
| E | 1.55 |
| F | 1.50 |
| G | 1.40 |
| H | 1.36 |
| I | 0.72 |
| J | 0.70 |
| K | 0.60 |
| L | 0.44 |
| M | 0.43 |
| N | 0.39 |
| O | 0.36 |
| P | 0.36 |
| Q | 0.29 |
| R | 0.29 |
Hi Diptarup
You can use :SumTOPN =CALCULATE ( [sum_], TOPN ( 10, 'Table', 'Table'[Value] ))pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly