Forum Discussion

maryJ's avatar
maryJ
Frequent Visitor
7 years ago
Solved

Count distinct values in hierarchy

Hi all, I am new to Power BI. Hope somebody can help me with my question. I have a hierarchy in my SQL view and I want to calculate my team size. Here is an example: My Hierarchy columns: Repo...
  • PattemManohar's avatar
    PattemManohar
    7 years ago

    maryJ Did you tried debugging by returning each count separately (Reporter,RM,Emloyee) so that you can easily figure it out where the duplicate counts are coming from. 

     

    Also, as per test data provided - I didn't check whether Reporter or RM is present in Employee (to exclude counting them again) but if that is not the case in your actual data then you need add those filter criteria to Employee Count as well.