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.
Link to .pbix sample data file
I have a table in Power BI called 'SC data all' with columns 'Supplier Name' and 'Spend (EUR)'. I created a Cumulative Spend measure using the following formula:
This formula is working fine, no issues here.
But now I would like tot add a range like:
Cumulative Spend <0.8 "Top 80%"
Cumulative Spend 0.8<>0.95 "80 to 95%"
Cumulative Spend >0.95 "Bottom 5%"
I use the following formula:
And I can't get this formula to work. All my results are "Top 80%"
It should not be this hard because the measure Cumulative Spend is working just fine.
Anybody knows what I am doing wrong? Much appreciated! 🙂
Solved! Go to Solution.
Hello shanti,
Okay, well I should've seen this sooner but your measure is showing "CumulativeSpend < 0.1, "Top 80%" in the measure when it should be "CumulativeSpend < 0.8, "Top 80%" presumably. This might just be a typo? 😄
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Proud to be a Super User! | |
Hello shanti,
Okay, well I should've seen this sooner but your measure is showing "CumulativeSpend < 0.1, "Top 80%" in the measure when it should be "CumulativeSpend < 0.8, "Top 80%" presumably. This might just be a typo? 😄
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Proud to be a Super User! | |
Hi Wilson,
That would have been an embarassing but a quick solution 😂
Unfortunately it doesn't seem to matter. I was juggling around with the numbers to see if it made any difference on the outcome and forgot to retun them to the original settings.
But the formula is still not giving me the outcome I expect.
I figured it out and it is equally embarrasing...
I added the formula as a column instead of a measure.
Now I made the changes is works like a charm.
Thanks for your time & effort in trying to help me out! 😀
haha I love it when my problem was just user error. Those are usually the easiest solutions! 😄
They were measures in your sample pbix though so I definitely never would've caught that hah.
Proud to be a Super User! | |
Hello shanti,
Your Cumulative Spend and Vendor Pareto measures are not exactly the same. They are using different CALCULATE parameters in the TotalSpend variable: Cumulative Spend is using "ALL('SC data all'[Supplier Name])", whereas Vendor Pareto is using "ALLSELECTED('SC data all')".
Hard to know whether this is the only issue (or an issue at all), since you haven't shared any data.
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Proud to be a Super User! | |
Hello Wilson,
Thanks for your quick response. You are right, I posted the wrong Cumulative Spend formula. Both are using the ALLSELECTED. I will edit my original post.
About sharing data, what would be the best way to share a sample of my data since it is a huge report/dataset. Create a new report with samples and post the .pbix file?
Shanti,
Yes, that would probably be the best way to share.
Proud to be a Super User! | |
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 |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |