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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tkavitha911
Helper III
Helper III

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 III
Helper III

Not solved my issue pls help me on this

 

govindarajan_d
Super User
Super User

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.