Forum Discussion
Ignore Slicer in Measure
- 5 years ago
Thank you everyone for the help. I ended up going a different route that can be seen here.
Solved: Re: Count by criteria - Microsoft Power BI Community
StephenGW
Hi StephenGW !
Please try using ALL() function to remove the filter cotext from [Audit Month] & [Audit Year] columns.
Fail Date = CALCULATE(MIN('Data'[Audit Date]), FILTER(ALL(Data, Data[Audit Month], Data [Audit Year]), Data[Pass/Fail]="Fail"))
Regards,
Hasham
- StephenGW5 years ago
Helper II
Thanks but that makes the visual not display. The details say "The rport measure 'Data'[Fail Date] has a syntax or semantic error at line 1, position 53, reported by Analysis Services: 'Multiple table arguments are not allowed in the ALL function. Here is a screenshot of my filters and the table.
I want the Location and Department slicers to apply to the measure but not the year or month. Only thing in the table is 'Data'[Area] and the measure.
Thanks for the quick reply.
StephenGW
- AlexisOlson5 years ago
Super User
ALL can take a table or columns but not both. Try removing the first argument in ALL:
ALL ( Data[Audit Month], Data[Audit Year] )- HashamNiaz5 years ago
Solution Sage
Thanks AlexisOlson for correcting it.
StephenGW So it could be like this;
Fail Date = CALCULATE(MIN('Data'[Audit Date]), FILTER(ALL(Data[Audit Month], Data [Audit Year]), Data[Pass/Fail]="Fail"))Regards,
Hasham