Forum Discussion
Get data from another table with several filters
- 2 years ago
Hi Terrassa - create one new date table with some range using calendar function.
check the model and relationship with the new date table.
use the below measure to get the active revision and call the date table call it in selectedvalue(datetable[date]).
ActiveRevision =
VAR SelectedDate = SELECTEDVALUE(DateTable[Date])
RETURN
CALCULATE(
MAX(Revisions[Revision]),
FILTER(
Revisions,
Revisions[Material] = MAX(BOM[Child]) &&
Revisions[Start] <= SelectedDate &&
(Revisions[End] >= SelectedDate || ISBLANK(Revisions[End]))
)
)try the above measure and let know if it works
Hi Terrassa - create one new date table with some range using calendar function.
check the model and relationship with the new date table.
use the below measure to get the active revision and call the date table call it in selectedvalue(datetable[date]).
ActiveRevision =
VAR SelectedDate = SELECTEDVALUE(DateTable[Date])
RETURN
CALCULATE(
MAX(Revisions[Revision]),
FILTER(
Revisions,
Revisions[Material] = MAX(BOM[Child]) &&
Revisions[Start] <= SelectedDate &&
(Revisions[End] >= SelectedDate || ISBLANK(Revisions[End]))
)
)
try the above measure and let know if it works
- Terrassa2 years ago
Helper I
Thank you very much Rajendraongole1, it works perfectly!