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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Fraze
Helper I
Helper I

REMOVEFILTERS... But not completely...

I am trying to create a column that only displays the aggregate calcualtion for the rows that have not been filtered out; without including the data that has been. 

 

Typically I would just use REMOVEFILTER, but in this case, the filter is still important to me... 

 

NewRtl/UsedRtl = DIVIDE([New],[Used])
NewRtl/UsedRtl Agg = CALCULATE(DIVIDE([New],[Used]),REMOVEFILTERS(Companies'))
 
Test #1 - When including all stores with no company filter, it does exactly what I want...
Fraze_1-1673563713673.png

 

Test #2 - But when I filter out half the stores, as expected the Agg column stays 1.1, but WHAT I WANT is every row to say is 1.3...

Fraze_2-1673563803454.png

Curious how I can construct a statement that will give me a column that returns the aggregate total for all stores that have not been filtered out.

 

Thanks!

1 ACCEPTED SOLUTION
bolfri
Solution Sage
Solution Sage

Have you tried  CALCULATE(DIVIDE([New],[Used]),ALLSELECTED(Companies')) ?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
bolfri
Solution Sage
Solution Sage

Have you tried  CALCULATE(DIVIDE([New],[Used]),ALLSELECTED(Companies')) ?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




That worked like a charm. Didn't know thats how ALLSELECTED worked.

 

Thanks!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.