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
Gokul
Helper IV
Helper IV

Top Month

find top month based on count of other value ..
Eg:august has 5k records sept has 10k records..
How to show sept in card visual !!??

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Gokul,

 

Please share a dummy sample. You also can modify the measure below to achieve your goal.

top1 =
MAXX (
    TOPN (
        1,
        SUMMARIZE (
            'FactSales',
            DimDate[YearMonth],
            "AmountOfRecords", COUNTROWS ( FactSales )
        ),
        [AmountOfRecords], DESC
    ),
    [YearMonth]
)

Top-Month

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Gokul,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

using direct topn under visual card  is also the best way...think so!!

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Gokul,

 

Please share a dummy sample. You also can modify the measure below to achieve your goal.

top1 =
MAXX (
    TOPN (
        1,
        SUMMARIZE (
            'FactSales',
            DimDate[YearMonth],
            "AmountOfRecords", COUNTROWS ( FactSales )
        ),
        [AmountOfRecords], DESC
    ),
    [YearMonth]
)

Top-Month

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LivioLanzo
Solution Sage
Solution Sage

@Gokul - please post sample data

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

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.