Forum Discussion

niels_vngi's avatar
niels_vngi
Frequent Visitor
4 years ago
Solved

Compare counts from two different tables

Dear all,   We're working on a large household survey that is aimed to map the priorities of citizens. We store general information like age, gender, source of livelihood, etc in one table and stor...
  • daniel79's avatar
    4 years ago

    You can try something like this

     

    Households% = 
    if(
    countx(priorities,priorities[What is the priority?])>countrows(filter(ALLSELECTED('CRC household survey'),'CRC household survey'[B00 Are you able to conduct the survey at this household?]="Yes")),1,
    countx(priorities,priorities[What is the priority?])/countrows(filter(ALLSELECTED('CRC household survey'),'CRC household survey'[B00 Are you able to conduct the survey at this household?]="Yes")))