Forum Discussion
Anonymous
8 years agoNot applicable
Count If
Hi everyone. I'm want calculate like count if excel in power BI, but my sentence is not ok. I'm try create another measure, but this count all register for each operator. MeasureCountIf = CALCU...
Anonymous
8 years agoNot applicable
v-cherch-msft
8 years agoMicrosoft Employee
Anonymous
You may post what result you want or what trouble you meet.
Regards,
Cherie
- Anonymous8 years agoNot applicable
Hi Cherie, i have a excel to calculate like this. I need calculate the same in power bi.
When i try your solution, the result is same like total, if i sum repetitions must be more total.
I share my archive to expland more.
https://drive.google.com/file/d/1Z1exWNaiMJWi5PwbCZybNNI27VhuuGbm/view?usp=sharing
- v-cherch-msft8 years agoMicrosoft Employee
Hi Anonymous
The table is simplified as below picture. Show you the measures:
MeasureCountIf = IF ( SELECTEDVALUE ( 'Table'[Serial Number] ) <> BLANK (), COUNTROWS ( 'Table' ), 0 )
MeasureForTotal = CALCULATE ( COUNTROWS ( 'Table' ), ALL ( 'Table'[Serial Number] ) )
Regards,
Cherie