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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |