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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.