cancel
Showing results 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

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.

Am I overthining this?

1 ACCEPTED SOLUTION
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
3 REPLIES 3
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.

Best Regards,
Henry

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
Helper I

Hi @Fowmy ,

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

Thanks for the help.

Michelle

Announcements

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

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

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

Top Solution Authors
Top Kudoed Authors