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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.