Forum Discussion

SgtMeowmers's avatar
SgtMeowmers
New Member
2 years ago
Solved

Distinct Count dependent on slicer

I am trying to count the number of projects that are meeting a certain goal, there are many projects in which some can belong to multiple cells.  Table is layed out similar to below: lab pro...
  • SgtMeowmers's avatar
    SgtMeowmers
    2 years ago

    FYI, got it to work by creating a summarized table by the projects.  I then adjusted my meet goal formula with :
    if ( hasonevalue(table[lab],  calculate( distinctcount(table[project]), filter(table, table[Expensed %] >= to ExpensedGoal))),  calculate( distinctcount(table[project]), filter(calculatedtable, calculatedtable[Expensed %] >= to ExpensedGoal)))

    definately not the best way to go about it, but is my work around until I get something else working.