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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
hxnwx
Frequent Visitor

Divide columns for percentage

Taking a break from banging my head.

 

I have a table sorted by date.  For each daily there are 3 columns, 1, 2, and 3 and a column for total.  I want to show a column for the percentage 1 is of total or 2 is of total, etc.  Basically the result of dividing one column by another.  

I've tried doing DIVIDE((1),(2)) with no luck.

I've tried showing as percentage of row total but this is adding in all columns of the row.

Capture.PNG

Am I overthining this?

::Back to banging my head::

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@hxnwx 

You can add measures as follows:
Modify and repeat for other two columns 

Pcnt 1 = DIVIDE ( MAX( TableName[1] ) , MAX( TableName[2] ) )



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @hxnwx ,

 

Whether the advice given by @Fowmy  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

Fowmy
Super User
Super User

@hxnwx 

You can add measures as follows:
Modify and repeat for other two columns 

Pcnt 1 = DIVIDE ( MAX( TableName[1] ) , MAX( TableName[2] ) )



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi @Fowmy ,

But if you have 39 columns like mine. How to divide column 1/column 0, column 2 /columns 1 ... and so on...

mluanacruz_0-1661802460843.png

 

 

Thanks for the help.

Michelle

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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