Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
xcaliber044
New Member

DAX Measure for Distinct top 3 Fruits per Quarter

Hi Community,

I am seeking assistance in achieving these figures using the DAX measure. Different top 3 fruits should be captured for each quarter. Is it possible? Thank you in advance!

xcaliber044_0-1752490072828.png

 

 

1 ACCEPTED SOLUTION
FBergamaschi
Solution Sage
Solution Sage

Create this measure

 

Sales Top 3 =
VAR Top3Prod =
TOPN (
    3,
    ALL ( Fruit[FruitName] ),
    [Sales]
)
RETURN
CALCULATE[Sales]KEEPFILTERSTop3Prod ) )

 

put the quarter column (I sugget year-quarter) in Columns and the fruit column in Rows in a matrix

 

Thanks

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

View solution in original post

1 REPLY 1
FBergamaschi
Solution Sage
Solution Sage

Create this measure

 

Sales Top 3 =
VAR Top3Prod =
TOPN (
    3,
    ALL ( Fruit[FruitName] ),
    [Sales]
)
RETURN
CALCULATE[Sales]KEEPFILTERSTop3Prod ) )

 

put the quarter column (I sugget year-quarter) in Columns and the fruit column in Rows in a matrix

 

Thanks

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.