Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need in the Filter() remove filters from a number of tables, but ALL and ALLExcept can remove filters only from one. Any workarounds?
____
Here is the problem I'm trying to solve: I need to find a first month when customer purchased for more than specific amount lets say 100$.
Formula: CALCULATE(FIRSTDATE('Calendar'[Month]), Filter(ALL('Calendar'),[Revenue]>100))
This formula works well but when I click slicer to filter to specific product on the report page, the calcualtion shows the first month when customer purchased that specific product for 100$+, but I don't want the slicer to impact this measure.
Solved! Go to Solution.
Hi, @ed7 ,
Indeed FILTER() accepts only one filterExpression, but all-mighty CALCULATE(), in theory, is capable of coping with as many as filters.
I hope this verbose measure may solve your issue which you mentioned
CALCULATE (
FIRSTDATE ( 'Calendar'[Month] ),
FILTER ( ALL ( 'Calendar' ), CALCULATE ( [Revenue], ALL ( product ) ) > 100 )
)
Better attach a dummy file so that your issue is demonstrated much more clearly and could possible be sooner to be solved by gurus here.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi, @ed7 ,
Indeed FILTER() accepts only one filterExpression, but all-mighty CALCULATE(), in theory, is capable of coping with as many as filters.
I hope this verbose measure may solve your issue which you mentioned
CALCULATE (
FIRSTDATE ( 'Calendar'[Month] ),
FILTER ( ALL ( 'Calendar' ), CALCULATE ( [Revenue], ALL ( product ) ) > 100 )
)
Better attach a dummy file so that your issue is demonstrated much more clearly and could possible be sooner to be solved by gurus here.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
i think you can add a calculatetable out of the filter(), and remove any filter you want by adding filter statement
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |