Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
In the Power Pivot measure, I have used a function LASTNONBLANK() , but the outcome was not reliable - probably because data model does not consider the original order of rows.
Excel formula or VBA is not an option and Power Query is not very efficient because of big load of data.
1 | 1 | 7/28/2021 04:15 PM | |
1 | 2 | 7/28/2021 04:23 PM | a |
1 | 3 | 7/28/2021 04:30 PM | |
1 | 4 | 7/28/2021 04:37 PM | b |
1 | 5 | 7/28/2021 04:44 PM | |
1 | 6 | 7/28/2021 04:51 PM | |
1 | 7 | 7/28/2021 04:59 PM | |
2 | 1 | 7/29/2021 01:51 PM | a |
2 | 2 | 7/29/2021 02:49 PM | b |
2 | 3 | 7/29/2021 03:47 PM | c |
2 | 4 | 7/29/2021 04:44 PM | |
2 | 5 | 7/29/2021 05:42 PM | a |
2 | 6 | 7/29/2021 06:39 PM |
For ticket "1", the returned value should be "b" (step 4) and for ticket "2", the returned value should be "a" (step 5).
1 | b |
2 | a |
Solved! Go to Solution.
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.
@MalyMajo Try:
Measure 2 =
VAR __Table = FILTER('Table7',[value]<>"")
VAR __Max = MAXX(__Table,[timestamp])
RETURN
MAXX(FILTER(__Table,[timestamp] = __Max),[value])
@MalyMajo Try:
Measure 2 =
VAR __Table = FILTER('Table7',[value]<>"")
VAR __Max = MAXX(__Table,[timestamp])
RETURN
MAXX(FILTER(__Table,[timestamp] = __Max),[value])
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 |
---|---|
55 | |
27 | |
23 | |
14 | |
11 |
User | Count |
---|---|
77 | |
63 | |
44 | |
17 | |
12 |