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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

TOP N with Summary

TOP N with Summary of Customer column is giving right total but if we split by other attribute split is not giving right.

 

Example :

Need to show TOP 100 Customer by sales data (e:g: 100M is the total of top 100 customers)  by region and year.

Sum of TOP 100 customer data, But while showing in matrix visual it will be region in row and year in colum ( adding of rows sum and column needs to give total sum of 100M)

 

Thanks in advance!!!

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You can use DAX functon TOPN():

TOPN(<n_value>, <table>, <orderBy_expression>, [<order>[, <orderBy_expression>, [<order>]]…])  

https://docs.microsoft.com/en-us/dax/topn-function-dax

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Hi @v-yuta-msft 

 

Yes am using TOPN function but not getting expected result.

SUMX(TOPN(100,
SUMMARIZE(Table, Table[Customer],"TOTAL", SUM(Table[Sales])),[TOTAL],DESC),[TOTAL])
 
Final total is right but when i split this data in matrin with region and year, split of data is not equal to Grand total

 

@Anonymous ,

 

Could you share some sample data for further analysis?

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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