Forum Discussion
amaleranda
6 years agoPost Patron
Add a column to a Data table from another lookup table
Hello Gurus, I have a lookup tabel like below(Image1). I need to add a new column (Revision Number) to my continues data tabel(Image2) based on below condition. my date tabel has only one column ...
- 6 years ago
Hello amaleranda
Try this:
RevisionNumber = CALCULATE( VALUES(Image1[Revision Number]), FILTER( Image1, Image2[Date]>= Image1[Revsion_Start_Date] && Image2[Date] <= Image1[Revsion_End_Date] ) )Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
vivran22
6 years agoCommunity Champion
Hello amaleranda
Try this:
RevisionNumber =
CALCULATE(
VALUES(Image1[Revision Number]),
FILTER(
Image1,
Image2[Date]>= Image1[Revsion_Start_Date]
&&
Image2[Date] <= Image1[Revsion_End_Date]
)
)Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
amaleranda
6 years agoPost Patron
vivran22 works a magic. thanks mate