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.
Hi all!
I want this measure to return the latest "Bijgestelde planning" from the fact for each Date (Datum). The Datum in the third column is from the Calendar table. This column has an active relationship with Bijgestelde planning, however I'm tring to deactivate that by using ALL().
Mijlpalen - Categorie =
VAR CurrentDate = MIN('Kalender'[Datum])
VAR CurrentProject = MIN(fct_mijlpalen[Project - Subproject])
VAR LatestEndDate =
CALCULATE(
MAX(fct_mijlpalen[Bijgestelde planning]),
FILTER(
ALL(fct_mijlpalen),
fct_mijlpalen[Project - Subproject] = CurrentProject &&
fct_mijlpalen[Bijgestelde planning] <= CurrentDate
)
)
RETURN
LatestEndDate
So essentially I want 1-3-2024 0:00:00 to appear in all the cells above it as well. I think those rows are being filtered by the Datum column next to it, so it can't find any value in the fact because it is being filtered by the active relationship.
Solved! Go to Solution.
I just fixed it.
I did several things:
1. I turned off the relationship using CROSSFILTER()
2. I didn't need the FILTER(ALL())
3. The fact was being filtered because of the filter on the project (VAR CurrentProject ).
I just fixed it.
I did several things:
1. I turned off the relationship using CROSSFILTER()
2. I didn't need the FILTER(ALL())
3. The fact was being filtered because of the filter on the project (VAR CurrentProject ).
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 | |
9 |