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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
tkavitha911
Helper I
Helper I

I want to create a custom table by using dax for top 5 January month contribution pls help me

tkavitha911_0-1709537081160.png

 

 

1 ACCEPTED SOLUTION

Above which i am provided it is output i want to create top 5 for the month of january 2024. and that top 5 spgrs i want to display m-3 accuracy percentage last 4 months like this 

 

tkavitha911_0-1709542861435.png

 

View solution in original post

6 REPLIES 6
tkavitha911
Helper I
Helper I

Not solved my issue pls help me on this

 

govindarajan_d
Impactful Individual
Impactful Individual

Hi @tkavitha911 ,

 

Does this help?:

TOPN (
    5,
    SUMMARIZE (
        Table,
        Table[Period],
        Table[SPGR Real],
        "ABS_ERROR", SUM ( Table[ABS ERROR] )
    ),
    "ABS_ERROR", DESC
)

 

Please include the group by columns and the value column you want to summarize by in the formula. 

Please use the formula for a calculated table. 

i want to create a custom table  to display latest month top 5 spgrs for each channel 

 

Hi @tkavitha911 ,

 

Please try like this:

Create this measure:

Rank by Month =
RANKX(SUMMARIZE(Table,Table[Channel],Table[SPGR Real],"ABSERROR",SUM(Table[ABS Error])),[ABSERROR],DESC)

 Then create this measure:

Top 5 = CALCULATE(SUM(Table[ABS Error]),FILTER(ALL(Table),Table[Period] = MAX(Table[Period]) && [Rank by Month] <=5))

 

Add the measure ('Top 5') to a table visualization and then add  SPGRS and Channel column to the table. 

Above which i am provided it is output i want to create top 5 for the month of january 2024. and that top 5 spgrs i want to display m-3 accuracy percentage last 4 months like this 

 

tkavitha911_0-1709542861435.png

 

Hi @tkavitha911 ,

 

I did not understand your requirement. Please provide all the requirement in the question itself.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.