Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dax Help For Self Join

Hello Experts,   I'm trying to create a measure from below TSQl that has self join on same table.  could you please help me in getting its equivalent DAX code.   SELECT COUNT(t1.[Cargo Id])...
  • richbenmintz's avatar
    richbenmintz
    6 years ago

    The Variables set the value to be used in the filter part of the calculate in the context of the row being evalulated

     

    So essentially what the calc column is doing is saying count the number of rows in the entire table where the location = location in the current row and the status = the status in the current row and the tender date = the ship date in the current row.

     

    Make Sense?


    Did I answer your question? Mark my post as a solution!
    Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!