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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jtemes
Helper I
Helper I

Latest Available Data

Hi all

I have gone through several threads trying to find what I want but I did not get a solution for my case (sorry if the solution has already been given to someone else).

I have a table like the below. 

Product                      Inital Date          End Date         Value

AAAAA                       01/01/2022        31/01/2022       60

AAAAA                       01/02/2022        28/02/2022       50

AAAAA                       01/03/2022        31/03/2022       70

Also, I have a Dates table whose relations with the Initial Date and End Date columns of this Table are inactive (otherwise I mess other stuff).

I want to create a matrix which shows the values for any given date. Like the one below. 

Product                    15/01/2022             31/01/2022            08/02/2022

AAAAAA                        60                           60                           50

Thanks for your assistance

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jtemes , try a measure like this with date table

calculate(sumx(filter(Table, Table[End Date] <= Max('Date'[Date])), Table[Value]), crossfilter(Table, Date, none))

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

4 REPLIES 4
amitchandak
Super User
Super User

@jtemes , try a measure like this with date table

calculate(sumx(filter(Table, Table[End Date] <= Max('Date'[Date])), Table[Value]), crossfilter(Table, Date, none))

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
jtemes
Helper I
Helper I

The issue is that the table has more columns with other data and, if I do that, these data would be inaccurate.

vapid128
Solution Specialist
Solution Specialist

in power query add colum {Number.From(Inital Date) ..Number.From(End Date)} and expand

 

vapid128
Solution Specialist
Solution Specialist

vapid128_0-1645062986235.pngvapid128_1-1645063018366.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.