Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 12 |