Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
99 | |
99 | |
38 | |
37 |
User | Count |
---|---|
157 | |
121 | |
73 | |
73 | |
63 |