Forum Discussion

MDonovan's avatar
MDonovan
New Member
3 years ago
Solved

return specific row of data between two dates

Hello!

 

I have the following data of where I'd like to return only the row with the "max" file end date on the ADHdate (so I can calculate the total in/total scheduled number for each max file end date and get a MTD average)


This will return the max file end date of all the files where the data is being retrieved from:

CALCULATE(
MAXX(

        SUMMARIZE(

        ALLSELECTED(Summary),

            (Summary[Index]),

            "MAX", MAX(Summary[FileEndDate])),[MAX]),

        FILTER(

            VALUES(Summary),

                Summary[Index]=MAX(Summary[Index])
                && Summary[ADHDate]=MAX(Summary[ADHDate])
                && Summary[FileEndDate]=MAX(Summary[FileEndDate])
               

              )

        )
But I haven't been able to narrow down the row.  All data is in the same table.

Thank you!

2 Replies

  • The above solution will display the correct end date on that row, but now I'm having trouble using that measure to also calculate the totalinadh / totalsched number. any help is appreciated!