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 all,
I have a table that, for example, tracks location throughout the day.
I would like to have a column indicating the last location on each particular date. How would I go about that?
As a bonus, it would be great to have an additional column that would show the last location say before 2am on each day.
eg. on 21/04/2018, the last location of the day was Kintbury, although it was beyond midnight, so with the above logic, it would have counted 'Savile Club'.
Does that make sense?
Rumbles
Solved! Go to Solution.
Hi @Rumbles,
Try this:
Last Location = CALCULATE ( LASTNONBLANK ( Location[Location], 1 ), FILTER ( ALLEXCEPT ( Location, Location[Date] ), Location[Time] = CALCULATE ( MAX ( Location[Time] ), ALLEXCEPT ( Location, Location[Date] ) ) ) )
Best regards,
Yuliana Gu
Hi @Rumbles,
Try this:
Last Location = CALCULATE ( LASTNONBLANK ( Location[Location], 1 ), FILTER ( ALLEXCEPT ( Location, Location[Date] ), Location[Time] = CALCULATE ( MAX ( Location[Time] ), ALLEXCEPT ( Location, Location[Date] ) ) ) )
Best regards,
Yuliana Gu
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |