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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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))

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))

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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