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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Data Filtering issue with Month Slicer

Hi Experts

 

I am trying to filter my data using a month slicer - however it onlu gives me the values fro Mar 21 and the slicer returns back zero values of all other periods in 2021.

 

Sample file

https://www.dropbox.com/s/xcuyv21vuz9vg51/test_.pbix?dl=0 

1 ACCEPTED SOLUTION

@Anonymous , Try

lastest month = month(maxx(allselected('Date'), 'Date'[Date])) -1

 

or

 

lastest month = month(maxx(allselected('DimDate'), 'DimDate'[Date]))

 

let rest be the same as of now

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please try to change your filter like below.

 

FILTER(ALLselect('Test Data_'),
MONTH('Test Data_'[cr03a_period])
=[Latest Month]
)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi Kim - Not working giving me a constant value..

amitchandak
Super User
Super User

@Anonymous , In all you Measures in the table you have filtered on lastest month , which based on today().

 

Ideally it should be maxx(allselected('Date'), 'Date'[Date]), if you want slicer to work

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Can you kindly post the full measure here and i should be able to do the rest.

Thanks

@Anonymous , Try

lastest month = month(maxx(allselected('Date'), 'Date'[Date])) -1

 

or

 

lastest month = month(maxx(allselected('DimDate'), 'DimDate'[Date]))

 

let rest be the same as of now

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

thank you amit

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors