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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors