Forum Discussion

comish4lif2's avatar
comish4lif2
Advocate II
4 years ago
Solved

COUNT of Values divided by All Rows from Second Table

I am trying to create a measure to generate a percentage that responds to 9 slicers.  The data needs to come from 2 tables which are joined (1 to many) by a 2 field concatenated key. The numerator ...
  • v-jianboli-msft's avatar
    4 years ago

    Hi comish4lif2 ,

     

    Based on your description, I have created a simple sample:

    Please try something like this:

    Measure = DIVIDE(COUNTROWS(FILTER(ALL('Table 1'),[Status]="A"||[Status]="B")),COUNTROWS('Table 2'))

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.