Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
93 | |
85 | |
76 | |
67 | |
62 |
User | Count |
---|---|
112 | |
97 | |
95 | |
64 | |
58 |