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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.