Forum Discussion
birdietran
5 years agoFrequent Visitor
[HELP!] Identify top 3 values summed based on another column
Hi all I have a data table containing of the first 2 columns as below want to create a column chart showing: The top 3 CCY with highest lump sum amount while the remaining CCYs are accummulated u...
- 5 years ago
Hi birdietran ,
Try this:
Top_3_CCY = IF ( RANKX ( 'Outward Overseas', CALCULATE ( SUM ( 'Outward Overseas'[Txn Amount in USD] ), ALLEXCEPT ( 'Outward Overseas', 'Outward Overseas'[CCY] ) ), , DESC, DENSE ) <= 3, 'Outward Overseas'[CCY], "Others" )Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Icey
5 years agoCommunity Support
Hi birdietran ,
Try this:
Top_3_CCY =
IF (
RANKX (
'Outward Overseas',
CALCULATE (
SUM ( 'Outward Overseas'[Txn Amount in USD] ),
ALLEXCEPT ( 'Outward Overseas', 'Outward Overseas'[CCY] )
),
,
DESC,
DENSE
) <= 3,
'Outward Overseas'[CCY],
"Others"
)
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
birdietran
5 years agoFrequent Visitor
This is exactly what I need! Thank you so much!