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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Chrisblanc
Regular Visitor

Division with active filter

Hello everyone, 

 

I am currently struggling with what actually appears quite simple: 

As you can see on the screeshots below, I have different amounts distributed per category on a graph, and the corresponding figures written on two columns. 
To get a comparision, I unlinked the graph and the "GLOBAL"column so the value is not affected by the selection, while the "SELECTION" column display the filtered value. 
However, I would like to get the "SELECTION" value as a percentage of the Global. 

 

Global valuesGlobal valuesFiltered values per selectionFiltered values per selectionProblem is, if I create a measure like : 

Returns rate = SUM('Table_1'[Quantity orders])/SUM('Table_1'[Quantity orders])
 
Is there any way the nominator of the formula can be affected by the selection on the graph while the denominator remains as a global SUM ?
 
 
Thank you in advance for your help ! 
1 ACCEPTED SOLUTION
cnweke
Resolver II
Resolver II

Hey,

 

This should work.... normally.

SUM('Table_1'[Quantity orders])/calculate(SUM('Table_1'[Quantity orders]);all(Table_1'[Global]))

 

Let me know how it turned out / mark it as solved if it works for you.

View solution in original post

2 REPLIES 2
cnweke
Resolver II
Resolver II

Hey,

 

This should work.... normally.

SUM('Table_1'[Quantity orders])/calculate(SUM('Table_1'[Quantity orders]);all(Table_1'[Global]))

 

Let me know how it turned out / mark it as solved if it works for you.

It does work !

 

Thanks a lot 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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