Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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).
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 ,
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.
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.
User | Count |
---|---|
17 | |
16 | |
14 | |
14 | |
13 |
User | Count |
---|---|
14 | |
12 | |
12 | |
8 | |
7 |