Forum Discussion

Juliet1's avatar
Juliet1
Frequent Visitor
3 years ago

ALL Function to exclude a slider that contains dates

Hello All

 

I would like to create a matrix in Power BI that includes specific columns. However, I want one particular column to remain unaffected by external filters. To achieve this, I have used the following formula:

CALCULATE(
        COUNT('Table1'[On Time]),
        ALL('Table1'[Date])
    )
Despite using this formula, I've noticed that when I select a date in the slicer, the filter is still being applied to the column. It's worth noting that I tested the formula with countries instead of dates, and it worked as intended. 
 
Hope anyone can help me!

Edit: I just noticed that the mesure work when I use in the slicer the date as it is but not when I use Date Hierarchy. Any idea why?
 
Thanks  ðŸ™‚