Forum Discussion
pbihelpplz
4 years agoNew Member
How to Countif Multiple Columns in PBI?
Hi everyone, I am new to PBI, not sure if my question is too basic. I have a data table in this structure other field field 1 field 2 field 3 other field name 1 null null ...
- 4 years ago
Hi pbihelpplz
I assume no relationship betweem the two tables= VAR CurrentName = SELECTEDVALUE ( Table2[name] ) RETURN COUNTROWS ( FILTER ( Table1, TableName[field 1] = CurrentName || TableName[field 2] = CurrentName || TableName[field 3] = CurrentName ) )
tamerj1
Community Champion
4 years agoHi pbihelpplz
I assume no relationship betweem the two tables
=
VAR CurrentName =
SELECTEDVALUE ( Table2[name] )
RETURN
COUNTROWS (
FILTER (
Table1,
TableName[field 1] = CurrentName
|| TableName[field 2] = CurrentName
|| TableName[field 3] = CurrentName
)
)- pbihelpplz4 years agoNew Member
wow, it's working! thank you so much tamerj1