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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors