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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
techno
Regular Visitor

Date Chart to show changes on the day, repeating previous day if no value

Looking for a solution to display a chart that shows value changes on the respective date.

i.e.

Sales

01 Dec 2023 10
05 Dec 2023 15
06 Dec 2023 15

 

Having the chart display horizontal links between the dates.

the 2nd, 3rd and 4th of December, even there is no value, should be treated as though they have the same value as the 01 Dec, thus only chaning on the 5th when a new different value is present.

 

Can this be configured directly on a chart visualization or will we need additional measures etc.

Wanting to keep things as simple as possible.

Getting the same value provided in the data set cannot happen, which would resolve this eaily enough.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@techno , Create a date/calendar table and then join the date of your table with date of date table. Use date from date/calendar table in visual, measure, and slicer

Last Sales = CALCULATE(lastnonblankvalues('Date'[Date], SUM(Sales[Amount])) ,filter(all('Date'),'Date'[date] <=max('Date'[date])))

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

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

2 REPLIES 2
amitchandak
Super User
Super User

@techno , Create a date/calendar table and then join the date of your table with date of date table. Use date from date/calendar table in visual, measure, and slicer

Last Sales = CALCULATE(lastnonblankvalues('Date'[Date], SUM(Sales[Amount])) ,filter(all('Date'),'Date'[date] <=max('Date'[date])))

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thank You.

 

Apologies on the delay

Got this working with a slight adjustment:
Last Sales = CALCULATE(lastnonblankvalue('Date'[Date], SUM('Sales'[Amount])) ,filter(all('Date'),'Date'[date] <=max('Date'[date])))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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