brawnystaff
Board Regular
- Joined
- Aug 9, 2012
- Messages
- 109
- Office Version
- 365
I am using Excel 2016 and have the following three columns in a worksheet:
Column A: Name
Column B: Date
Column C: Status Code
There are duplicate names that appear in Column A, what changes is the Date and possibly the Status Code.
When putting the sheet above into a Pivot table and adding to the Data Model, trying to get the following results:
Rows: Name
Values: Max Date and corresponding Status Code that appears on the same row with the Max date
I am able to get the Max Date by right-clicking on the Range Name in the Pivot Table and Adding a Measure and putting in the following DAX formula: Max([Date]). However, I am not able to figure out how to get the corresponding Status Code. Any ideas?
Note that I am able to figure out the above by not using a Pivot Table and instead using some array formulas (Index/Max/Row) to get the answer I need, I just want to know if it is possible using the Pivot Table/DAX formula approach.. Thanks.
Column A: Name
Column B: Date
Column C: Status Code
There are duplicate names that appear in Column A, what changes is the Date and possibly the Status Code.
When putting the sheet above into a Pivot table and adding to the Data Model, trying to get the following results:
Rows: Name
Values: Max Date and corresponding Status Code that appears on the same row with the Max date
I am able to get the Max Date by right-clicking on the Range Name in the Pivot Table and Adding a Measure and putting in the following DAX formula: Max([Date]). However, I am not able to figure out how to get the corresponding Status Code. Any ideas?
Note that I am able to figure out the above by not using a Pivot Table and instead using some array formulas (Index/Max/Row) to get the answer I need, I just want to know if it is possible using the Pivot Table/DAX formula approach.. Thanks.