Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

RELATED function not working

Hello,   I am trying to calculate net work days between a starting and ending point but am having trouble. I am following the solution in this thread: https://community.powerbi.com/t5/Desktop/DATE...
  • BekahLoSurdo's avatar
    7 years ago

    Hi Anonymous ,

     

    The first step would be to remove the blank rows in your Holi table. You can do this in your source data or via Power Query:

    = Table.SelectRows(Source, each [Date] <> null and [Date] <> "")

    Then delete and re-create your relationship between the two tables so that it is 1-to-many instead of many-to-many.

     

    This should allow the RELATED function to operate as expected.