Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the following Calculated column to figure out if which rows hold the latest versions of data
MaxDate = CALCULATE(MAX(ProjectsTable[Metric Date]),FILTER(ProjectsTable, Projects[Project Name]=EARLIER(ProjectsProject Name])))
Followed by this second calculated column which acts as a Flag
LatestValue = If(ProjectTable[Metric Date] = ProjectTable[MaxDate], 1, 0)
Ultimately I'm trying to fit both of these inside a Measure as variables so the result can be dynamically filtered.
My problem is that the first column is a formula that doesn't work inside a measure. I'm getting errors with it.
I tried playing around with it with something like this but to no avail
Var FilterDate = MAX(ProjectTable'[Metric Date]) Var LastUpdate = CALCULATE( IF(MAX(Project Table[Metric Date]) <= FilterDate, 1, 0), VALUES(ProjectTable[Project Name]))
Note, the VALUES is because I need to filter latest date per Project name (different projects have different latest dates).
Thanks for any help!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |