Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 23-06-2022 and 04-07-2022 in Table1 should have ProductID = 05-07-2022_Ba,
dates between 05-07-2022 and 27-07-2022 in Table1 should have ProductID = 28-07-2022_Ba, and so on.
Do you have any suggestion?
Thank you.
Solved! Go to Solution.
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]
)
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]
)
User | Count |
---|---|
77 | |
76 | |
44 | |
30 | |
26 |
User | Count |
---|---|
97 | |
91 | |
52 | |
47 | |
46 |