Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
77 | |
76 | |
43 | |
30 | |
24 |
User | Count |
---|---|
97 | |
91 | |
52 | |
47 | |
46 |