Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
feralvarez994
Helper II
Helper II

Calculate PlaceHolder error

Hi everyone! Im struggling with this Dax measure. I want to count the distinct sucursal that reach certain value, i have made a table that got the right measures but when i try to count the sucursals that meet certain condition it appears an error that tells me that i have used a placeholder function in a true/false condition.

I want to count the quantity of sucursals that have the ObjT C/CSI > BENEF BRUTO TALLER, or the ones that have the %OBJT C/CSI >0, the thing is that the sucursals are no related to those functions, i have just made some dax with selectedvalue but theres no relationship in there. I have tried to count them with this formula but it doesnt work

 
Contar Sucursales Alcanzan CSI =
-- CALCULAR LA CANTIDAD DE SUCURSALES QUE ALCANZAN EL CSI
CALCULATE
    (DISTINCTCOUNT(TALLER[SUCURSAL]),
        [%ObjT C/CSI] > 0)

 

Im attaching the PBI FILE, this table is in the sheet COLABORADORES

feralvarez994_0-1668630465014.png

Thanks everyone!

3 REPLIES 3
feralvarez994
Helper II
Helper II

Anyone that can help me? I still couldnt figured it out

Anonymous
Not applicable

Hi @feralvarez994 ,

 

Please try this code.

Contar Sucursales Alcanzan CSI = 
-- CALCULAR LA CANTIDAD DE SUCURSALES QUE ALCANZAN EL CSI
CALCULATE
    (DISTINCTCOUNT(TALLER[SUCURSAL]),
       FILTER(TALLER, [%ObjT C/CSI] > 0))

Result is as below.

RicoZhou_0-1668675674122.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Hi @Anonymous , i have tried that also but the thing is that there are only 3 TALLERS with %OBJT C/CSI > 0 instead of 6, i dont know which filter is not having in context

feralvarez994_0-1668689239295.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.