Forum Discussion
Anonymous
8 years agoNot applicable
Unique column values
Hi I am trying to get a table wth cst and sales rep based on the last order date so I have a table Customer # Sales Rep Last order date 1018574 tim 9/21/2017 1018574 alex 9/...
- 8 years ago
Anonymous
As a calculated column you could use
Column = VAR MyMax = CALCULATE ( MAX ( TableName[Last order date] ), ALLEXCEPT ( TableName, TableName[Customer #] ) ) RETURN CALCULATE ( FIRSTNONBLANK ( TableName[Sales Rep], 1 ), FILTER ( ALLEXCEPT ( TableName, TableName[Customer #] ), TableName[Last order date] = MyMax ) )
Zubair_Muhammad
8 years agoCommunity Champion
Anonymous
It works when I use the sample data you have provided. See the pic below
Could you show me a screenshot of your formula?
or share the file via onedrive or googledrive