Forum Discussion
How to create a custom column that compares dates from two different tables in one of the tables?
- 8 years ago
Hi ,
Based on the scenario, this is what i did as a replicate of your scenario.
Then created a column in table one as
Date Check Flag = IF([Date]> RELATED(Table4[Date]),1,0)
Alternatively you can create two column in table as
Table4 Date = RELATED(Table4[Date])
Check Flag = IF([Date]>[Table4 Date],1,0)
This gives the required flag for you
Hope this solves your issue.
Regards.
DateCheck = [datefieldtable1]>CALCULATE(AVERAGE(Table4[datefield]),Table1) You should have and may need a Calendar Table where they Key Date fields from 1,3 and 4 respectively link to the the key date in your date table.
This should work, specifying the other table in the calculate will force the filter context from Table 1 to be enforced based on the relationships. Don't know your data model well enough to know if the relationships you have defined will be sufficent.