Forum Discussion
rahul_ferns
Helper II
4 years agoMeasure to show Latest Data based on Filter
Hi Experts I am trying to create a measure that will give me the latest LTI description based on a filter, I have created a measure using MAX but if doesn't give me the latest description (I think i...
- 4 years ago
Hello rahul_ferns ,
Please try creating measure as-
Measure = Var A = MAXX(Filter(ALLSELECTED('Incidents_Data'),'Incidents_Data'[Incident Type]="Lost Time Injury" ),'Incidents_Data'[Date]) Var B = CALCULATE(FIRSTNONBLANK('Incidents_Data'[Incident Description],0),FILTER('Incidents_Data','Incidents_Data'[Incident Type]="Lost Time Injury" && 'Incidents_Data'[Date]=A)) Return BPlease mark it as solution if it solves your requirement. Kudos are also appreciated.
Thanks,
Shishir
Shishir22
Solution Sage
4 years agoHello rahul_ferns ,
Please try creating measure as-
Measure =
Var A = MAXX(Filter(ALLSELECTED('Incidents_Data'),'Incidents_Data'[Incident Type]="Lost Time Injury" ),'Incidents_Data'[Date])
Var B = CALCULATE(FIRSTNONBLANK('Incidents_Data'[Incident Description],0),FILTER('Incidents_Data','Incidents_Data'[Incident Type]="Lost Time Injury" && 'Incidents_Data'[Date]=A))
Return
B
Please mark it as solution if it solves your requirement. Kudos are also appreciated.
Thanks,
Shishir
- rahul_ferns4 years ago
Helper II
Thanks, Shishir
It worked
Much appreciated