Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
Need to find out the 4th highest revenue generating product
here the data
orderno, productName, revenue
1,a,100
2,b,200
3,c,300
4,d,50
5,e,800
Solved! Go to Solution.
Hi @MSMKM
Please try
4th Highest Product =
MAXX (
TOPN (
1,
TOPN (
4,
VALUES ( 'Table'[productName] ),
CALCULATE ( SUM ( 'Table'[revenue] ) ), DESC
),
CALCULATE ( SUM ( 'Table'[revenue] ) ), ASC
),
'Table'[productName]
)
Hi @MSMKM
Please try
4th Highest Product =
MAXX (
TOPN (
1,
TOPN (
4,
VALUES ( 'Table'[productName] ),
CALCULATE ( SUM ( 'Table'[revenue] ) ), DESC
),
CALCULATE ( SUM ( 'Table'[revenue] ) ), ASC
),
'Table'[productName]
)