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 all
I am new in power bi and using it for a couple of weeks and learning with google and youtube 🙂
Can anyone help me as i have an error : 'The syntax for ',' is incorrect. (DAX( IF(.....'
the comands are very basic and i use them for a new colum:
Solved! Go to Solution.
Hi @Orlando_Tuga ,
Try using the following expression:
Robot_TtF =
IF(
AND(EPCC_Cases[Title] <> BLANK(), EPCC_Cases[RepairType] = "In House"),
IF(
OR(EPCC_Cases[Status] = "Closed", EPCC_Cases[Status] = "Shipped to Customer"),
IF(
AND(EPCC_Cases[DateReceivedAtEPCC] <> BLANK(), EPCC_Cases[DateShipped] <> BLANK()),
DATEDIFF(EPCC_Cases[DateReceivedAtEPCC], EPCC_Cases[DateShipped], DAY),
IF(
EPCC_Cases[DateReceivedAtEPCC] = BLANK(),
1000,
IF(
EPCC_Cases[DateShipped] = BLANK(),
2000
)
)
),
IF(
EPCC_Cases[DateReceivedAtEPCC] <> BLANK(),
DATEDIFF(EPCC_Cases[DateReceivedAtEPCC], TODAY(), DAY),
4000
)
),
5000
)
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Tried it and does not work.
Hi @Orlando_Tuga ,
Try using the following expression:
Robot_TtF =
IF(
AND(EPCC_Cases[Title] <> BLANK(), EPCC_Cases[RepairType] = "In House"),
IF(
OR(EPCC_Cases[Status] = "Closed", EPCC_Cases[Status] = "Shipped to Customer"),
IF(
AND(EPCC_Cases[DateReceivedAtEPCC] <> BLANK(), EPCC_Cases[DateShipped] <> BLANK()),
DATEDIFF(EPCC_Cases[DateReceivedAtEPCC], EPCC_Cases[DateShipped], DAY),
IF(
EPCC_Cases[DateReceivedAtEPCC] = BLANK(),
1000,
IF(
EPCC_Cases[DateShipped] = BLANK(),
2000
)
)
),
IF(
EPCC_Cases[DateReceivedAtEPCC] <> BLANK(),
DATEDIFF(EPCC_Cases[DateReceivedAtEPCC], TODAY(), DAY),
4000
)
),
5000
)
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Thanks
It worked, was it due to the spaces?
Hi,
If your setting shows "," as error, please try ";"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |