Forum Discussion
gathenjic
6 years agoFrequent Visitor
How to Assign text value based on dates while the date variable are in 2 different tables
I have 2 tables. Table1 for campaign monitoring which have date_monitored Table 2: is for campaign calendar - it has Campaign_start_date, Campaign_end_date, Monitoring_start_date and Monitoring_end_...
v-gizhi-msft
6 years agoCommunity Support
Hi,
It is an incorrect use of IF function that caused error, please try this:
TYpe of Monitoring =
IF (
MIN ( HH_Monitoring[date_monitored] )
>= MIN ( 'Activity Calendar'[SIAs_Start_Date] )
&& MIN ( HH_Monitoring[date_monitored] )
<= MIN ( 'Activity Calendar'[SIAs_End_Date] ),
"IN_Process",
IF (
MIN ( HH_Monitoring[date_monitored] )
>= MIN ( 'Activity Calendar'[IM_start_Date] )
&& MIN ( HH_Monitoring[date_monitored] )
<= MIN ( 'Activity Calendar'[IM_End_Date] ),
"END_Process",
"TestData"
)
)
The result shows:
Best Regards,
Giotto Zhi
gathenjic
6 years agoFrequent Visitor
Thanks That worked, However at the back of my mind i was hoping to be able to use the TYpe of Monitoring in a slicer. This is not working. I Thinks that approach will not work for that.
Do you have an idea how i can calculate that measure and be able to use it in a slicer