Forum Discussion
Brahms99
9 months agoFrequent Visitor
Formula to count values in two separate columns
Hello, I am new to power bi. I am looking for a formula that would return the count of “Yes” in columns “Timesheet Submitted 1” and “Timesheet Submitted 2” combined. So, the result would would ...
- 9 months ago
Hi,
If it is to work in any evaluation context, try this Measure.
Count = SUMX( 'Table', IF('Table'[Timesheet Submitted 1] = "Yes", 1, 0) + IF('Table'[Timesheet Submitted 2] = "Yes", 1, 0) )
MasonMA
Super User
9 months agoHi,
If it is to work in any evaluation context, try this Measure.
Count =
SUMX(
'Table',
IF('Table'[Timesheet Submitted 1] = "Yes", 1, 0) +
IF('Table'[Timesheet Submitted 2] = "Yes", 1, 0)
)