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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
sandip626
New Member

Last 3 months data has to displayed with single month selection from slicer

Hi 

I am new user to DAX and power BI. Please help me. 

I have a date column, month & year ( example : 01-2019) in the table and few other columns.

 

I have a month & year slicer. When the end user selects a perticular value ( example : 01-2019) a plot with x-axis as date has to display last 3 months of data. That means data for 01-2019, 12-2018, 11-2018 has to appear in x-axis of the plot. 

 

How to get 3 months data to x-axis when the user selects one month only. please help

1 REPLY 1
Anonymous
Not applicable

Hi @sandip626,

 

I think you need use a unrelated date fields as source of slicer, then write measure as filter apply on visual level filter to filter records.

 

If source fields of slicer has relationship to your table, these table records will been filtered by slicer selection.(you choose one month in slicer so it should only display one month records)

 

Please share more detail information to help us clarify your requirement.

How to Get Your Question Answered Quickly

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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