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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.