Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
My Test data
Name type Modifieddate Other Columns ------------------------------------------------------- A type1 1/1/2021 A type2 1/1/2021 B type3 1/2/2021 B type1 1/2/2021 C type1 1/3/2021
A type1 1/3/2021 A type3 1/3/2021 B type2 1/4/2021
My Matrx output expected.
Type1 | Type2 | Type3 | |
A | 1/3/2021 | 1/1/2021 | 1/3/2021 |
B | 1/2/2021 | 1/4/2021 | 1/2/2021 |
C | 1/3/2021 |
Is there a dax measure that would achieve this?
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
You can try this measure:
LatestDate =
VAR selectedName = SELECTEDVALUE ( T[Name] )
VAR selectedType = SELECTEDVALUE ( T[type] )
RETURN
CALCULATE (
MAX ( T[Modifieddate] ),
T[Name] = selectedName,
T[type] = selectedType
)
If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
It Worked!! Thanks @ERD
The earlier issue is due to my data model which caused the Date field to return inconsistent data. After referring to right columns the Dax you shared had worked.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Hi @Anonymous ,
You can try this measure:
LatestDate =
VAR selectedName = SELECTEDVALUE ( T[Name] )
VAR selectedType = SELECTEDVALUE ( T[type] )
RETURN
CALCULATE (
MAX ( T[Modifieddate] ),
T[Name] = selectedName,
T[type] = selectedType
)
If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!