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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
krzysztof
Helper III
Helper III

Non-TOP - why the measure shows 0

I have a problem with the measure. The measure calculates products that are not in the top 20 but in totals it shows 0, so you can not see the data in the column chart

1.PNG

 

Sample pbx

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @krzysztof 

This looks like a measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

And for your case, just do some adjust as below:

1.[Top 20] is not a rank measure, It's better to adjust Non-Top 20 measure like this:

Non-Top 20 = IF([Top 20]=BLANK(),SUM('Table 1'[Value]),0)

2. add a measure like below for sum Non-Top 20.

Measure 2 = var _table=SUMMARIZE('Table 1','Table 1'[Name product],"_Value",CALCULATE(SUM('Table 1'[Value]))) return
SUMX(_table,[Non-Top 20])

Result:

7.JPG

Best Regards,

Lin

Community Support Team _ Lin
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

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @krzysztof 

This looks like a measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

And for your case, just do some adjust as below:

1.[Top 20] is not a rank measure, It's better to adjust Non-Top 20 measure like this:

Non-Top 20 = IF([Top 20]=BLANK(),SUM('Table 1'[Value]),0)

2. add a measure like below for sum Non-Top 20.

Measure 2 = var _table=SUMMARIZE('Table 1','Table 1'[Name product],"_Value",CALCULATE(SUM('Table 1'[Value]))) return
SUMX(_table,[Non-Top 20])

Result:

7.JPG

Best Regards,

Lin

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.