I have 2 tables as below Table1
Value Status
A Normal
B InProgress
C InProgress
Table2
Value SLA
A 10:00
B 13:00
C Multiple Times a Day
I need to create a measure to return numbers based on status and Time values from column - SLA of Table2. So, my conditions are:
1. If Status is "Normal" return 1
2. If Status is "InProgress", check corresponding 'SLA' value in Table2 and see if SLA is greater than current time or less than current time.
If its greater return 2, if its less return 3.
3. If SLA value is 'Multiple Times a Day' return 4.
How can I do this please? Thanks for help