Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I have this
error in OLE DB or ODBC visuals: Query (26,47) The syntax is incorrect
calculated column:
Column is Time_repair (MTTR_decimal).
The error still persists
The nested functions seem to be the source of complexity and potential error.
Maybe you can refactor it for clarity and correctness like this:
Tempo_reparo (horas paradas) =
IF (
F_Indisponibilidade[unavailability_reason_text]
IN { "Indisponibilidade Motorista", "Preventiva", "Frota Legal", "Sinistro" },
BLANK (),
(
DATEDIFF (
F_Indisponibilidade[Inicio Indisponibilidade],
F_Indisponibilidade[Fim Indisponibilidade],
SECOND
) / 3600
)
)
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |