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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Super User
Super User

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
Super User
Super User

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.