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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.