Forum Discussion
Help with Conditional Column comparing a date to a disconnected table
- Anonymous4 years ago
Hi Anonymous ,
According to your statement, I know you want to mark your date by 0 or 1 dynamically based on a slicer which is created by an unrelated "SAR_Period_DateDim" Table. From your screenshot I find that [Proj Col BUOFAA] is a calculated column. However, calculated column couldn't show dynamic result by slicer. Here I suggest you to create a measure and then create a table visual to achieve your goal.
I think [SAR_START] is a measure to catch the [SAR_Period_Start] based on slicer. You can combine these steps in one measure.
Proj Col BUOFAA = VAR _Select_Start = SELECTEDVALUE ( SAR_Period_DateDim[SAR_Period_Start] ) RETURN IF ( MAX ( TM_Project[ActIssueDate] ) < _Select_Start, 1, 0 )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your statement, I know you want to mark your date by 0 or 1 dynamically based on a slicer which is created by an unrelated "SAR_Period_DateDim" Table. From your screenshot I find that [Proj Col BUOFAA] is a calculated column. However, calculated column couldn't show dynamic result by slicer. Here I suggest you to create a measure and then create a table visual to achieve your goal.
I think [SAR_START] is a measure to catch the [SAR_Period_Start] based on slicer. You can combine these steps in one measure.
Proj Col BUOFAA =
VAR _Select_Start =
SELECTEDVALUE ( SAR_Period_DateDim[SAR_Period_Start] )
RETURN
IF ( MAX ( TM_Project[ActIssueDate] ) < _Select_Start, 1, 0 )
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.