Forum Discussion
Adding constant from table as filter to date column
- 8 years ago
Hi kjohn10,
We can not create a dynamic calculated column based on slicer, please review this knowledge base. For your requirement, you can create a measure using the formula below rather than calculated column.Adjusted Date_test = DATEADD ( FIRSTNONBLANK ( DateKey[Date], DateKey[Date] ), SELECTEDVALUE ( Query1[DayChange] ), DAY )
Create a table visual, and select DateKey[Date], measure as value, you will get expected result as follows.
select 3 in slicerselect -1 in slicer
Please download attachment for more details.
Best Regards,
Angelia
Hi kjohn10,
We can not create a dynamic calculated column based on slicer, please review this knowledge base. For your requirement, you can create a measure using the formula below rather than calculated column.
Adjusted Date_test =
DATEADD (
FIRSTNONBLANK ( DateKey[Date], DateKey[Date] ),
SELECTEDVALUE ( Query1[DayChange] ),
DAY
)
Create a table visual, and select DateKey[Date], measure as value, you will get expected result as follows.
select 3 in slicerselect -1 in slicer
Please download attachment for more details.
Best Regards,
Angelia
v-huizhn-msft Thank you for the KB link; I've replicated your solution, this should work, but will take me some time to link in the other calcs.