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.
Good Day Experts
I request support to find the latest status per client.
CUSTOMER | DATE | STATE |
A | 01/01/2023 | ACTIVE |
A | 13/05/2023 | LOST |
B | 01/04/2023 | NEW |
C | 13/05/2023 | LOST |
A | 01/01/2023 | NEW |
C | 01/01/2023 | NEW |
C | 01/02/2023 | ACTIVE |
B | 13/05/2023 | ACTIVE |
Solved! Go to Solution.
Hi @Syndicate_Admin
You can use dax measure:
Last Status = VAR Ld = CALCULATE(MAX('Table'[DATE]), ALLEXCEPT('Table', 'Table'[CUSTOMER])) RETURN CALCULATE(MAX('Table'[STATE]), FILTER('Table', 'Table'[DATE] = Ld && 'Table'[CUSTOMER] = SELECTEDVALUE('Table'[CUSTOMER])))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Syndicate_Admin
You can use dax measure:
Last Status = VAR Ld = CALCULATE(MAX('Table'[DATE]), ALLEXCEPT('Table', 'Table'[CUSTOMER])) RETURN CALCULATE(MAX('Table'[STATE]), FILTER('Table', 'Table'[DATE] = Ld && 'Table'[CUSTOMER] = SELECTEDVALUE('Table'[CUSTOMER])))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
99 | |
98 | |
79 | |
74 | |
66 |
User | Count |
---|---|
136 | |
109 | |
104 | |
82 | |
73 |