Forum Discussion

vincenardo's avatar
vincenardo
Helper I
3 years ago
Solved

Count Values with condition

In my data set, I have multiple rows for each 'Name' when each 'Name; has a Skill:Name assigned to them, with a skill level, skill start date and skill end date;   The end result I am trying ...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    3 years ago

    Hi,

    Try these calculated column formulas

    Count with condition = CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Name]=EARLIER(Data[Name])&&Data[Skill End Date]=BLANK()&&Data[Skill Level]<>1))
    Apportioned count = if(and(Data[Skill End Date]=BLANK(),Data[Skill Level]<>1),DIVIDE(1,Data[Count with condition]),BLANK())

    Hope this helps.

  • vincenardo's avatar
    vincenardo
    3 years ago

    Thank you! This work perfectly!!