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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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