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.
Hello,
I am encountering difficulties using ALLEXCEPT. Have also tried ALL and ALLSELECTED but none seem to work.
We have the following dataset:
Security | Date | Amount |
XYZ | 12/31/2020 | 468 |
XYZ | 3/31/2021 | 657 |
XYZ | 6/30/2021 | 389 |
The date column of this field joins to the date field in our date table - not sure if that impacts this.
What we need to do is get the MAX(Date) which is LESS THAN the given filters/context dates.
So, if filtered (and context) date range is 1/1/2021-3/31/2022 - we need to return date 12/31/2020 - which is 'outside' of the filtered date dataset. So, need to remove any filters related to that date column.
Currently have this:
Solved! Go to Solution.
A measure with the code below shall work:
Simple enough
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! |
A measure with the code below shall work:
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |