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 =
CALCULATE (
COUNTROWS ( Table );
FILTER ( Table; Table[Operator] = Table[Operator] );
FILTER ( Table; Table[Serial Number] = Table[Serial Number] )
)
Thanks for help.
6 Replies
- AnonymousNot applicable
Anyone could help me :smileyfrustrated:
- v-cherch-msftMicrosoft Employee
Anonymous
To get the table as requested, you may try 2 ways:
1. Create a measure:Measure := CALCULATE(COUNTROWS('Table'))
2. Create a column:Column = COUNTX ( FILTER ( 'Table', 'Table'[Serial Number] = EARLIER ( 'Table'[Serial Number] ) ), 'Table'[Serial Number] )
Regards,
Cherie- AnonymousNot applicable
- v-cherch-msftMicrosoft Employee
Anonymous
You may post what result you want or what trouble you meet.
Regards,
Cherie