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
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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.