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

DAX values calculation confusion

Hi

I am a starter for power bi.
I were checking out a blog https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/

I really got confused how the values in calculation work!!! I am representing the same scenario provided in the blog. Someone please help me to understand.

VAR NumOfAllVisitsSameSalon =
CALCULATE (
[# Visits],
REMOVEFILTERS ( 'Visits' ),
VALUES ( 'Visits'[Beauty Salon] )
)

My understanding : The calculation is removing the filters in 'visits' table globally and values will take unique values from beauty salon column. So the count is 4 since there are 4 types of beauty salons. But when I pull this measure into the table already present in view it shows 3. Why?

Question 2:

CALCULATE(
[# Visits],
REMOVEFILTERS ( 'Visits'[Beauty Salon] ),
VALUES ( 'Visits'[Group] )
)

My understanding: There is only one filter(slicer) in the view. This same calculation as Remove filter with column name is showing different values for the table in view. But when I use this calculation as remove filter with table name it is showing a common value 5 for all the rows in table view. Why?

What makes difference for remove filter with column from table name even after having only one slicer in view?

Thanks in advance
1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You can refer to the official document for checking the detailed usage:

https://docs.microsoft.com/en-us/dax/removefilters-function-dax 

 

Based on my test, the removefilter on a table similar to ALL function, 

001.PNG002.PNG

Slicer won't affect the results of removefilter:

003.PNG

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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.