Forum Discussion
vincenardo
3 years agoHelper I
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 ...
- 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.
- 3 years ago
Thank you! This work perfectly!!
Ashish_Mathur
3 years agoSuper User
Hi,
So For Calvin Lip, you want to see 0.25 in another column (in each of the 4 rows) and for Kevin, you want to see null, 0.5, 0.5 and null. Am i correct? Share the download link of the PBI file.
vincenardo
3 years agoHelper I
Yes, that is correct. Here is a link to a sample file.
- Ashish_Mathur3 years agoSuper User
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.
- vincenardo3 years agoHelper I
Thank you! This work perfectly!!
- Ashish_Mathur3 years agoSuper User
You are welcome.