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
Anonymous
Not applicable

line graphchange as per slicer

hiiii  i am attaching my pbix file as well

i have a line graph and a slicer

in my slicer i am using relative date slicer 

what i want to do is if i select  weeks in slicer my line graph should display past 2 weeks and current week data

if i select a month in my slicer my line graph should display past 2 months and cuttent month data

image.pnghttps://drive.google.com/file/d/1dcyfSgtGtc6acwq24Rm4JEk3czdrlGrc/view?usp=sharing 

1 ACCEPTED SOLUTION

Hi @Anonymous 

don't use the implicite calendar build by Power BI Desktop. Build your own calendar and use it in your data model in relationship with the other tables. So you have full control on your data.

 

18-09-_2020_13-11-46.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

your slicer is set relativ to date and filters your chart to only one datapoint in year 2020. Change the behavior of your slicer or disconnect its filtering in tab Format > Edit interactions from the line chart.

 

18-09-_2020_12-18-07.png

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Anonymous
Not applicable

hiii frank

i want my data in the line graph to be changed as per my slicer and display past 2 and presen months or weeks data

Hi @Anonymous 

don't use the implicite calendar build by Power BI Desktop. Build your own calendar and use it in your data model in relationship with the other tables. So you have full control on your data.

 

18-09-_2020_13-11-46.png

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

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.