Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi!
I need to calculate the cumulative percentage as in the file attached.
What I need is to have another column with cumulative percentage with 25%, 62,5%, 87.5%, 100%.
Any idea how to do it? I checked this thread but couldn't make it.
Thanks
Cheers,
Andrea
Solved! Go to Solution.
Hi @Anonymous,
You could refer to Miltinho's solution, see below code:
Measure = var sales=CALCULATE(SUM('TEST'[Sales]),FILTER(ALLSELECTED(TEST[Collection]),ISONORAFTER('TEST'[Collection],MAX('TEST'[Collection]),DESC))) var totalsales=CALCULATE(SUM('TEST'[Sales]),ALLSELECTED(TEST)) return DIVIDE(sales,totalsales)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hi All can any one help to calculate cumulative for (allocation_rat) column ?
Hi,
You should have a Calendar Table with a relationship (Many to One and Single) from the Allocation_date column of the Data Table to the Date column of the Calendar Table. From your visual, remove the Allocation_date column and drag the Date column from the Calendar Table. Assuming allocated_rate is a measure, write this measure and drag it it your visual
YTD allocate_rate = calculate([allocated_rate],datesytd(calendar[date],"31/12"))
The YTD calculation will restart on January 1 of every year.
Hope this helps.
Hi Mr. Ashish, I'm a new intern at The PowerBI, and I don't know how to get the Cumulative when I worked the Calender they give me error. could you please help to create table have cumulative rate starting from 01/01/2015 to 30/12/2021
any equation that can be applied to get such a result in the yellow color?
Hi,
Share the link from where i can download your PBI file.
Sorry but the PBI file in my laptop.Do you want me send you the file
Upload the file to Google Drive and share the download link of the file here.
Mr. Ashish
this is my link file
https://drive.google.com/file/d/1eszmxKNjvi1yfqTkZG2ky3PyIFyYtEOZ/view?usp=sharing
Access Denied message.
Hi @Anonymous,
You could refer to Miltinho's solution, see below code:
Measure = var sales=CALCULATE(SUM('TEST'[Sales]),FILTER(ALLSELECTED(TEST[Collection]),ISONORAFTER('TEST'[Collection],MAX('TEST'[Collection]),DESC))) var totalsales=CALCULATE(SUM('TEST'[Sales]),ALLSELECTED(TEST)) return DIVIDE(sales,totalsales)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Can confirm it still works and it's still needed! 🙂 Thanks, man!
Hi,
To compute the cumulative %, how does one know the order to be followed. Looking at your data, the order is definitely not the Sales. Is the order the Collection column - Autumn, Spring, Summer and then Winter?
Please clarify.
Hi,
Here's what i did. I first wrote this calculated column formula to get the indexing by season
I then wrote these measures
Hi great_AS,
See this image and tell us if works for you.
HI @Anonymous!
That's perfect!! Can you please share your formula here so I can copy and paste it?
Thanks.
Cheers,
Andrea
Andrea, I solved it then I deleted it.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
102 | |
70 | |
68 | |
54 | |
41 |
User | Count |
---|---|
155 | |
83 | |
66 | |
63 | |
62 |