Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hola, quisiera saber la forma en que pueda contar la cantidad de datos que contiene una columna de acuerdo a criterios y que uno de esos criterios sea que contenga una palabra determinada "DS" Dejo un ejemplo como se realiza en excel para ilustrar la idea
= CONTADORES ( C13:C21 ; "8" ; B13:B21 ; "*SDR*" )
Solved! Go to Solution.
Hi @smith7 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Total =
var _table=
FILTER('Table',
ISERROR(
SEARCH("SDR", 'Table'[Flag2])) =TRUE()
&&
ISERROR(
SEARCH(8, 'Table'[Flag2])) =TRUE())
return
IF(
'Table'[Flag1] in SELECTCOLUMNS(_table,"1",[Flag1])&&'Table'[Flag2] in SELECTCOLUMNS(_table,"2",[Flag2]),
SUMX(_table,[amount]),BLANK())
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @smith7 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Total =
var _table=
FILTER('Table',
ISERROR(
SEARCH("SDR", 'Table'[Flag2])) =TRUE()
&&
ISERROR(
SEARCH(8, 'Table'[Flag2])) =TRUE())
return
IF(
'Table'[Flag1] in SELECTCOLUMNS(_table,"1",[Flag1])&&'Table'[Flag2] in SELECTCOLUMNS(_table,"2",[Flag2]),
SUMX(_table,[amount]),BLANK())
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
111 | |
72 | |
64 | |
46 |