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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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.

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

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.

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

@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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.