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.
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") ,
)
)
Solved! Go to Solution.
@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
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")
)
)
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
That resolved the sytax error. It did not like the *. I was trying to filter for anything except the items that start with Scratch
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |