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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Divide with filters Syntax for ')" is incorrect.

Below is my calulcation that is giving me a Syntax Error. Please help. 

 

MFG AQL = DIVIDE(
CALCULATE(
COUNT('QL_Data'[Id]) ,
FILTER(
QL_Data ,
QL_Data[ChairFailed] = "Bad"
&& QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado"
&& QL_Data[Cosmetic Reason] <> "Scratch"*
)
),
CALCULATE(
COUNT(QL_Data[Id]) ,
FILTER(QL_Data,QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado") ,
)
)

1 ACCEPTED SOLUTION
Rfranca
Resolver IV
Resolver IV

@Anonymous

 

this is the correct formula, it had an extra comma.

 

MFG AQL = DIVIDE(
CALCULATE(
COUNT('QL_Data'[Id]) ,
FILTER(QL_Data ,

QL_Data[ChairFailed] = "Bad"
&& QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado"
&& QL_Data[Cosmetic Reason] <> "Scratch"*

)

),
CALCULATE(COUNT(QL_Data[Id]) ,
FILTER(QL_Data,QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado")

 )
)

View solution in original post

4 REPLIES 4
Rfranca
Resolver IV
Resolver IV

@Anonymous

 

this is the correct formula, it had an extra comma.

 

MFG AQL = DIVIDE(
CALCULATE(
COUNT('QL_Data'[Id]) ,
FILTER(QL_Data ,

QL_Data[ChairFailed] = "Bad"
&& QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado"
&& QL_Data[Cosmetic Reason] <> "Scratch"*

)

),
CALCULATE(COUNT(QL_Data[Id]) ,
FILTER(QL_Data,QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado")

 )
)

Anonymous
Not applicable

I removed the extra comma and I am still getting the syntax error. 

 

MFG AQL = DIVIDE(
CALCULATE(
COUNT('QL_Data'[Id]) ,
FILTER(QL_Data ,
QL_Data[ChairFailed] = "Bad"
&& QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado"
&& QL_Data[Cosmetic Reason] <> "Scratch"*
)
),
CALCULATE(
COUNT(QL_Data[Id]) ,
FILTER(QL_Data,QL_Data[Inspection Status] = "Finished Product Inspection / Inspeccion de Producto Finalizado")
)
)

@Anonymous

 

Unfortunately I do not have the basis to validate the formula ...
But you have an asteric "Scratch" * why are you using it?

Maybe the mistake is here!

 

Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.

 

Best Regards,

Rfranca

Anonymous
Not applicable

That resolved the sytax error. It did not like the *. I was trying to filter for anything except the items that start with Scratch

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.