cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Pass max date selected in slicer to a measure

Hi there,

 

I have a series of reports.  The first two reports are sliced by a Week Ending filter to display only data that corresponds to that week.  On the third report, I want it to sum data YTD through the week ending date selected.  I think I need to pass the date selected in the filter to a measure, and then calculate the data based on <= the selected date.  My issue is that they may select more than one date in the filter.  What is a measure to capture the max date selected?

 

Thanks,

 

Stacey

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: Pass max date selected in slicer to a measure

@StaceyMcCain You can simply use max function

 

Max Selected Date = MAX( Table[Date] )





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
Super User IV
Super User IV

Re: Pass max date selected in slicer to a measure

@StaceyMcCain You can simply use max function

 

Max Selected Date = MAX( Table[Date] )





Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Re: Pass max date selected in slicer to a measure

Thank you, @parry2k !  For some reason, I was stuck on thinking I had to use SELECTEDVALUE somewhere in there.  🙂

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors