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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Percentage of grand total

below is the following data i have i am looking to do a percentage of grand total based on the below data. So for number of days = 1 and the count being 374  what is this as of a percentage of the grand total. After i will then need to make this cummulative over numver of dayswfwf.JPG

1 ACCEPTED SOLUTION

Ok, here you are, I think this is you need:

 

Create 2 calculated columns:

perc = ('PERCENT'[COUNT]/SUM('PERCENT'[COUNT]))*100

CumPerc = CALCULATE(SUM('PERCENT'[perc]);FILTER('PERCENT';'PERCENT'[DAY]<=EARLIER('PERCENT'[DAY])))

Results:

reply007.png

 

Best Regards,
Miguel

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

9 REPLIES 9
ZunzunUOC
Resolver III
Resolver III

Hello @Anonymous , I have no clear what you need.

 

Is this your goal?

 

day            count     %

1                30          30%

2                10          10%

3                45          45%

4                15          15%

 

Anonymous
Not applicable

@ZunzunUOC yes basically but then i need to make it cumulative afterwards

Ok, here you are, I think this is you need:

 

Create 2 calculated columns:

perc = ('PERCENT'[COUNT]/SUM('PERCENT'[COUNT]))*100

CumPerc = CALCULATE(SUM('PERCENT'[perc]);FILTER('PERCENT';'PERCENT'[DAY]<=EARLIER('PERCENT'[DAY])))

Results:

reply007.png

 

Best Regards,
Miguel

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

Anonymous
Not applicable

@ZunzunUOC  thanky ou for your reply have tried the 1st column but am getting % over 100 which obviously i shouldnt any ideas screen shot attached

 

Capture.JPG

Care, you need to use brackets:

 

reply012.png

Anonymous
Not applicable

@ZunzunUOC Still the same issue

 

sCFsf.JPG

Ok, delete 100 on your code please. If you use % format, not need to multiply per 100

Anonymous
Not applicable

@ZunzunUOC  Sorry still not working i know the total is 6700 so the attached numbers are deff wrong that i am getting when using your formulawefwefwef.JPG

This is a rounded number, you can add decimals and solve.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.