Forum Discussion
Problem MAXX function with string
- 5 years ago
Hi Amit,
thanks a lot, it works 🙂
Best regards
Arne
MAXCC =
VAR maxStatus =
CALCULATE (
MAX ( 'Work Order Time Transactions'[Status] ),
ALLEXCEPT (
'Work Order Time Transactions',
'Work Order Time Transactions'[Item]
),
'Work Order Time Transactions'[Reason Code] = "0B"
)
RETURN
CALCULATE (
SELECTEDVALUE ( 'Work Order Time Transactions'[Center] ),
'Work Order Time Transactions'[Status] = maxStatus
)
- hanssonnor5 years agoFrequent Visitor
Hi Colacan,
thanks for your approach. I had to modify it though, with the Allexcept it did not work. However once I removed that filter it showed the same results.
Best regards
Hansson
- colacan5 years agoResolver II
hanssonnor Hi Hanssonnor, I have noticed that extracting highest or lowest recode within categories is quite tipical problem which lots of people are facing. And Allexcept function is quite useful for those problems.
Cheers!