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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Reg - How to set default range in visual without affecting the slicers

Hi Everyone,

  I am trying to display last 4 calender weeks of data in line chart it will show once i used the slider to change the range for two months it will not work..KIndly help me on this issue as soon as possible.

 

Thanks & regards,

Poornalingam A

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , You can use Week Rank for that. But you might have to use independent table approach in video shared

Approach for trend  -https://www.youtube.com/watch?v=duMSovyosXE

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

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

Anonymous
Not applicable

Hi @Anonymous ,


Sorry to disturb you...


But did I answer your question ? Please mark my reply as solution. Thank you very much.

 

Best Regards,
Stephen Tao

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,


Sorry to disturb you...


But did I answer your question ? Please mark my reply as solution. Thank you very much.

 

Best Regards,
Stephen Tao

Anonymous
Not applicable

Hi @Anonymous ,

 

You could try to use ISFILTERED  function. You can put the date column in the slicer into the column name of ISFILTERED(<columnName>). Create the measure as

 

=IF(ISFILTERED(<DateName>), Result 1, Result2 )

 

Result 1 is the result when the slicer is filtering, and Result 2 is the result when the slicer is not filtering.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi 

Thank u @amitchandak 

My requiremets is  I have used date slicer  for my report and we wants it to default to last 4 weeks on load and later user can change the date range. 

amitchandak
Super User
Super User

@Anonymous , You can use Week Rank for that. But you might have to use independent table approach in video shared

Approach for trend  -https://www.youtube.com/watch?v=duMSovyosXE

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors