Forum Discussion
Casey_ONeal
7 years agoFrequent Visitor
Need some assistance with DAX
Hi, I am somewhat new to Power BI and I could use some assistance with a calculation I need to do. Basically, I have two related tables let's call them Table 1 and Table 2. I need to calculate whether...
- 7 years ago
OK, and the date fields are in one table each?
In this case, you could e.g. create a calculated column in Table1 with:
= IF(Table1[Date1] <= RELATED(Table2[Date2]), "Good", "Overdue")
Casey_ONeal
7 years agoFrequent Visitor
Yes, there is a 1:1 relationship in the Power BI model based on a field containing component names/codes which are unique identifiers.
Michiel
Resolver III
7 years agoOK, and the date fields are in one table each?
In this case, you could e.g. create a calculated column in Table1 with:
= IF(Table1[Date1] <= RELATED(Table2[Date2]), "Good", "Overdue")
- Casey_ONeal7 years agoFrequent VisitorMichiel, Thank you for the assistance here. Follow up question for anyone. Can you do the same thing with tables that have an indirect relationship?