Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
caitertotz
Regular Visitor

Find last value based on date

I have been racking my brain for days now trying to get this to work. I have a series of data each with several dates for each month, I need my report to ONLY show me the last current date of the month selected from the slicer & corresponding values.  (i.e. I select March from my slicer, it should only show me the values for 3/25/18 56,315 - Paperless, 189,626 - Paper, 12,287 - Combo)

 

I need to only use one slicer for all visuals, by month. There has to be an easy way?!

 

data 1.png

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @caitertotz,

 

You could get your expected output by the following steps.

 

1. Create a calculated table below to get the Week of value.

 

Table = VALUES(Table1[Week of ])

2. Create a measure below in the Table to filter.

 

selected = 
IF(SELECTEDVALUE(Table1[Week of ]) = MAXX(ALLSELECTED('Table'),[Week of ]),1,0)

3.  Put the selected measure in Visual level filters and create the visual.

 

Capture44.PNG

 

 

In addition, you could have a reference of my test pbix file.

 

Hope it can help you !Smiley Tongue

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @caitertotz,

 

You could get your expected output by the following steps.

 

1. Create a calculated table below to get the Week of value.

 

Table = VALUES(Table1[Week of ])

2. Create a measure below in the Table to filter.

 

selected = 
IF(SELECTEDVALUE(Table1[Week of ]) = MAXX(ALLSELECTED('Table'),[Week of ]),1,0)

3.  Put the selected measure in Visual level filters and create the visual.

 

Capture44.PNG

 

 

In addition, you could have a reference of my test pbix file.

 

Hope it can help you !Smiley Tongue

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.