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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX

Hello guys,

 I would like to calculate the transformation ratio by doing for example (33/678). could you please help me?

thks.

 

Makiza_0-1651068118339.png

 

5 REPLIES 5
Anonymous
Not applicable

The operation I want to do is divided the column "Gagnée" by the total sum of the column "Total transformation"

Whitewater100
Solution Sage
Solution Sage

Hi:

You can do a couple of measures.(If you don't have [Total ransformations]

Total Transformations = SUM(Table[Total Transformation])

Ratio = DIVIDE([Total Transformations], CALCULATE(Sum(Table[Total Transformations]), REMOVEFILTERS()))

OR

Ratio = 

DIVIDE(SUMX(Table, [Total Transformations]),

SUMX(ALLSELECTED(Table), [Total Transformations]))

 

I hope this solves your question. Thanks..

 

Anonymous
Not applicable

Thank you for your answer I tried both operations and each time I have an error message: The operator or expression '( )' is not supported in this context.

 

Makiza_1-1651073310637.png

 

 

Makiza_0-1651073102083.png

 

Hi:

I tested it. See if we are aligned. I will put two ways of doing the share measure.

Share 2 = DIVIDE(SUMX(Data, [Total Amt]), SUMX(ALLSELECTED(Data),[Total Amt]))

Whitewater100_0-1651080808663.png

Is this a good solution now? Thanks

 

Hi:

At the end can you write   ...REMOVEFILTERS())

I beleive I added an extra )

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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