Forum Discussion
KiranPatil
8 years agoFrequent Visitor
DAX formula Help
ID Status Time Stage Status C11 01-04-2018 Screening Pending C11 02-04-2018 Screening Rejected C11 03-04-2018 Screening Pending C11 04-04-2018 Screening Pending ...
- 7 years ago
Hi v-jiascu-msft ,
I have the above transaction and i need to create in calculated column due to obvious reasons .
For each ID i need Screening Pending MAX Status updated Date .May be can create one Flag , Please help how to write in the DAX to achieve this .
Output should be
A1 Sreening Pending 04-09-18
A2 Sreening Pending 06-09-18
A3 Sreening Pending 08-09-18
A4 Sreening Pending 09-09-18
Advance thanks :)
- 7 years ago
Hi KiranPatil,
The formula of Flag could be like below. Please check the demo in the attachment.
Flag = VAR maxDate = CALCULATE ( MAX ( Table1[Status Updated Date] ), FILTER ( 'Table1', 'Table1'[id] = EARLIER ( Table1[id] ) && Table1[Stage] = "Screening" && Table1[Status] = "Pending" ) ) RETURN IF ( [Status Updated Date] = maxDate, 1, 0 )Best Regards,
Dale
v-jiascu-msft
7 years agoMicrosoft Employee
- KiranPatil7 years agoFrequent Visitor
Hi v-jiascu-msft , Yeah will mark it and thanks for the help .
I have one more doubt . Hope you reply to that as well