Forum Discussion
DAX measure required
- 6 years ago
Great, since 'ALL POS' has a 1-1 relationship with both tables, we can build a single 'New Column' on this table to acomplish what you need....
Vac wo Plan = IF(RELATED('VAC POS'[EmpID]) <> BLANK(), IF(RELATED('WPA POS'[PosNo]) = BLANK(), "Blank VAC wo Plan"))You can either change the final text to 1, and COUNT the results, or leave it text andCount = COUNTA('All POS'[Vac wo Plan]) the new coulmn as a measure to get your result.
Based on your notes, i'm assuming your table structure looks like this with a Data Table, and 2 'Many to 1' Linked Tables. (Key point here is there's no connection between EmpID on Table1 & Table 3. Only 2 different connections to the Data Table.)
Take this in 2 easy steps. 1: Identify if EmpID is present in Table3, and create a Custom Column as such on Table 1...
2: Then you can use a simple IF statement in the CountRows calcuation....
Sample below. If this isn't right, or there's more details you haven't shared, please post sample clensed data from your Tables, and screen shot of the Relationship Joins.
Forrest