cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joshua1990
Super User
Super User

Project Value between to dates

I have a simple table that shows me a value per Article

ArticleValueDate
A100001.01.2021
A105001.02.2021

 

As you can see, each value gets a new value per month.

Now I would like to fill the timeframe between both dates based on the latest value = 1000.

How can I project - using a Dax measure - the first value from 01.01.2021 until 31.01.2021?

 

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Picture1.png

 

 

https://www.dropbox.com/s/0mawaif2buhhv1n/joshuav3.pbix?dl=0 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thanks, but the value should be flat based on the latest value. 

Picture1.png

 

https://www.dropbox.com/s/0mawaif2buhhv1n/joshuav3.pbix?dl=0 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@joshua1990 , Create a date date table .

Create a new end date column

 

end date   =

minx(filter(Table, Table[Article] = earlier(Table[Article] ) &&  Table[Date] >earlier(Table[Date])),Table[Date])

rename date as start date in table 

 

then create a table

filter(Crossjoin (Table, Date), [Date] >=[Start Date] && [Date] <=[End Date])

 

A similar example in the attached file

 

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors