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.
Solved! Go to Solution.
Try this approach.
1. Create measure. Table2 is the data table, and has a relationship with Dates.
Latest Value =
VAR vCurrentDate =
MAX ( Dates[Date] )
VAR vMaxDateCurrentID =
CALCULATE (
MAX ( Table2[Date] ),
ALLSELECTED ( Dates[Date] ),
Table2[Date] <= vCurrentDate
)
VAR vMaxValueCurrentID =
CALCULATE (
MAX ( Table2[Value] ),
ALLSELECTED ( Dates[Date] ),
Table2[Date] = vMaxDateCurrentID
)
RETURN
vMaxValueCurrentID
2. Create matrix visual and date slicer. Columns in matrix should be Dates[Date], and set to "Show items with no data".
Sample data:
Proud to be a Super User!
Try this approach.
1. Create measure. Table2 is the data table, and has a relationship with Dates.
Latest Value =
VAR vCurrentDate =
MAX ( Dates[Date] )
VAR vMaxDateCurrentID =
CALCULATE (
MAX ( Table2[Date] ),
ALLSELECTED ( Dates[Date] ),
Table2[Date] <= vCurrentDate
)
VAR vMaxValueCurrentID =
CALCULATE (
MAX ( Table2[Value] ),
ALLSELECTED ( Dates[Date] ),
Table2[Date] = vMaxDateCurrentID
)
RETURN
vMaxValueCurrentID
2. Create matrix visual and date slicer. Columns in matrix should be Dates[Date], and set to "Show items with no data".
Sample data:
Proud to be a Super User!
Thank you so much for looking at this!
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |