Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello,
Im trying to count each client of the company if the cell have in the "Clase" column the data "Factura (v)". But, in "Codlegal" column i have multples times each code, so i need to use distinct to no repeat each one.
Im trying with:
NumClientes = CALCULATE ( DISTINCTCOUNT(Hoja2[Codlegal]);Hoja2[Clase] = "Factura (v)")
But i get "30,23K" and are only 2.916. I tried with differents formulas but i cant get it, any advice?
Solved! Go to Solution.
solution should be
COUNTROWS(FILTER(ALL(Table);Table[column]="Factura (v)"))
if you don't want the independent context like if you want it to change when you slice remove the ALL
solution should be
COUNTROWS(FILTER(ALL(Table);Table[column]="Factura (v)"))
if you don't want the independent context like if you want it to change when you slice remove the ALL
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 40 | |
| 30 | |
| 24 |