Forum Discussion
Alex_nor
3 years agoFrequent Visitor
Create a column with ID using date range
Hello all, I have those two tables: Table1 Table2: I would like to create a new column in Table2 where i get the ProductId from Table1 depending on the dates. Dates between ...
- 3 years ago
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Product ID CC = SUMMARIZE ( FILTER ( Table1, Table1[Load date] = MINX ( FILTER ( Table1, Table1[Load date] > Table2[TimeStamp] ), Table1[Load date] ) ), Table1[ProductID] )
Jihwan_Kim
3 years agoSuper User
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
Product ID CC =
SUMMARIZE (
FILTER (
Table1,
Table1[Load date]
= MINX (
FILTER ( Table1, Table1[Load date] > Table2[TimeStamp] ),
Table1[Load date]
)
),
Table1[ProductID]
)