Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I've been trying to write a visual calculation formula, but I've noticed that for smaller numbers it doesn't work as expected.
I've been able to pin the problem to COLLAPSEALL behavior. It basically stops working for smaller numbers in my table. It works well for many rows, but when it reaches values smaller than 0.01% of the column total, the Total column shows the row value, instead of the expected Total value (collapsed column total).
The test formula is as simple as this: Total = COLLAPSEALL([Value],ROWS)
The screenshot shows a data sample, where it breaks (rows sorted by value, descending).
Solved! Go to Solution.
Hi @plew ,
This is an interesting edge case with the COLLAPSEALL function in visual calculations. What you’re describing is likely related to internal optimization and how Power BI handles very small numbers and totals when using COLLAPSEALL in visuals.
A few points to consider and possible workarounds:
1. Why does this happen?
2. What can you try?
Total = SUMX(ALLSELECTED('Table'), [Value])
Total = CALCULATE(SUM([Value]), ALL('Table'))
3. Known limitations:
Summary:
Hope this helps! Let us know if you find a workaround or need more detailed steps.
Hi @plew,
Thankyou @burakkaragoz for the detailed explanation, you're absolutely right.
This issue with COLLAPSEALL occurs due to internal optimizations in Power BI, where very small values (less than ~0.01% of the total) may be excluded from the collapse logic, causing the total column to display the row value instead. Using regular DAX measures with REMOVEFILTERS, or forcing evaluation with SUMX(ALLSELECTED(...)), can help ensure consistent totals. It's also worth checking data types and precision to avoid rounding issues. Appreciate you highlighting this limitation and offering clear workarounds for the community.
Glad I could assist! If this answer helped resolve your issue, please mark it as Accept as Solution and give us Kudos to guide others facing the same concern.
Regards,
Sahasra
Community Support Team.
HI @plew,
We wanted to follow up to see if our suggestion was helpful. Please let us know how things are progressing and if you are still encountering any issues.
If the response resolved your problem, you may mark it as the solution and give it a thumbs up to assist others in the community as well.
Thank you and continue using Microsoft Fabric Community Forum.
Hi @plew,
I wanted to follow up on our previous suggestions regarding the issue. We would love to hear back from you to ensure we can assist you further.
If our response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.
Thank you.
Hi @plew,
We wanted to check if you had a chance to review our last reply. Let us know if it helped or if you need more guidance—we're always happy to help further.
If the solution worked for you, please click Accept as Solution and feel free to leave a Kudos for visibility.
Looking forward to hearing from you!
Hi @plew ,
This is an interesting edge case with the COLLAPSEALL function in visual calculations. What you’re describing is likely related to internal optimization and how Power BI handles very small numbers and totals when using COLLAPSEALL in visuals.
A few points to consider and possible workarounds:
1. Why does this happen?
2. What can you try?
Total = SUMX(ALLSELECTED('Table'), [Value])
Total = CALCULATE(SUM([Value]), ALL('Table'))
3. Known limitations:
Summary:
Hope this helps! Let us know if you find a workaround or need more detailed steps.
The last bulletpoint from your point 2 has helped me solve this:
Sometimes, moving the calculation to a regular measure (outside of a visual calculation) and then referencing that measure in your visual can resolve the issue.
Adjusted Total formula as DAX measure:
This may not solve your issue but it's how it is.
When you use COLLAPSEALL in Power BI, it usually shows each row’s real value.
But if a row has a really tiny value, like less than 0.01% of the total, Power BI sometimes skips the real calculation to work faster.
Instead of the small number, it shows the total for that column.
This is just how Power BI handles very small numbers, to save time.
You’ll see this happen most often when you sort by value and look at the smallest rows.
It isn’t something you can fully fix, but you can try filtering out very small values if you don’t want this to show up.
It’s a known behavior and not a mistake in your formula.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |