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

Join 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.

Reply
Kolumam
Post Prodigy
Post Prodigy

Issue with Calculating percentage

Hi All,

 

Please see the below image.

daxxx.JPG

 

I was trying to create a calculate column of [SUM( Y)/SUM(X) ]* 100 and create a pie chart but it's not working as expected. It doens't have the summarise option. Please help

 

9 REPLIES 9
FlaF
Helper I
Helper I

You need to create a new column with this formula: DIVIDE(table.Y;table.X)

 

Then, you have to change the format in percentage: menu bar -> modeling -> format

 

Ciao

Flavia

quentin_vigne
Solution Sage
Solution Sage

Hi @Kolumam

 

You are only calculating the percentage of Y on X. 

 

Maybe you should try : 

 

DIVIDE(Calculate(SUM(Table[Y]);All(Table));Calculate(SUM(Table[X]);All(Table))

And then choose to display it as percentage 

 

- Quentin

I did but doesn't split up.. shows the same for all

daxxxx.JPG

Did you calculate new columns with a formula like divide(sum(table.Y);sum(table.X))? or like divide(table.Y;table.X)?

Tried both. 

 

It's not showing the split up of percentage.

Are your data in the same database of the site name? Is there a link between data and the site name?

Hi 

 

The average of % solar is 31% but it is showing as 34% ( when I do SUM(annual PV consumed)/sum(annual Load)). How do I do a weighted average to acheive 31%?

 

dax2.JPG

Hi @Kolumam,

 

Have you solved your problem? If not, please share a dummy pbix file which can reproduce the issue, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have used your data and power bi has calculated the right average.

I think there is a problem with the link between your data, but I'm not sure

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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