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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NazarBorodin
New Member

I have a problem with removefilter

I have this code:

Total Receipts Ignoring Amount Filter =
CALCULATE(
    DISTINCTCOUNT(Sales[Чек]),
    REMOVEFILTERS(Sales[Сума до сплати]),
    Sales[Сума до сплати] > 0
)
My task is to create a measure that will not react to the cutoff by [Сума до сплати]. But this measure still reacts to this cutoff. How can this be fixed?

2 REPLIES 2
sjoerdvn
Super User
Super User

If it is not linked to a dimension table (see previous comment), try using ALL instead of REMOVEFILTERS.

MattAllington
Community Champion
Community Champion

You need a dimension table for the column you are trying to remove. You cannot acheive the result you want by using REMOVEFILTER over a fact table. 

read my article here for what you should aim for. https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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