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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
oscarmqz
Advocate II
Advocate II

Bar chart showing only last 5 days of data from selected date in slicer

Hi, I have a dashboard with multiple visuals, all of them but one will always show a single day of data (selected by the user using a slicer). The other one should show last 5 days of data (from user selection). So in order to show more than 1 single day in the chart I edited the interactions and chose that the date slicer won't filter the line chart, I tried using the Top N filter or relative dates, but it will always show the last 5 days of the whole table and not from the slicer's selection, so I've tried with a measure instead in multiple ways but none is working.... I tried using my single fact table "Snapshot Date" and then created a calendar table but still not working. Hope you guys can help me....

 

temp.png

 

Regards

Oscar

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Refer to the attached PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Refer to the attached PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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