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.
Hi team,
How can I pick up only the LATEST DATE VALUES in the DATASET using DAX. Example below
Input:
Customer | Value | Date |
A | 25 | 30/06/2021 |
B | 90 | 30/06/2021 |
C | 45 | 12/04/2021 |
D | 15 | 11/06/2021 |
Output:
Customer | Value | Date |
A | 25 | 30/06/2021 |
B | 90 | 30/06/2021 |
Solved! Go to Solution.
Value total Latest Date : =
VAR _latestdate =
CALCULATE ( MAX ( Data[Date] ), REMOVEFILTERS () )
RETURN
CALCULATE ( [Value total :], KEEPFILTERS ( Dates[Date] = _latestdate ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Value total Latest Date : =
VAR _latestdate =
CALCULATE ( MAX ( Data[Date] ), REMOVEFILTERS () )
RETURN
CALCULATE ( [Value total :], KEEPFILTERS ( Dates[Date] = _latestdate ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |