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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.