Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Dear all , can someone help me look at below dax function? error: The syntax for ',' is incorrect.
Return
Solved! Go to Solution.
Hi @xiumi_hou ,
Could it possibly be that this part of your code:
if(
SinceBaseLine_PHQ>=6 || SinceBaseLine_GAD>=4,
"Yes"),
"No")should be written like this?
if(
SinceBaseLine_PHQ>=6 || SinceBaseLine_GAD>=4,
"Yes",
"No"
)
The full code would then be
IF (
HASONEFILTER ( 'Cases'[name] ),
IF (
BaseLineActualDate = BaseLineBaseDate,
"Not available",
IF ( SinceBaseLine_PHQ >= 6 || SinceBaseLine_GAD >= 4, "Yes", "No" )
),
"--"
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @xiumi_hou ,
Could it possibly be that this part of your code:
if(
SinceBaseLine_PHQ>=6 || SinceBaseLine_GAD>=4,
"Yes"),
"No")should be written like this?
if(
SinceBaseLine_PHQ>=6 || SinceBaseLine_GAD>=4,
"Yes",
"No"
)
The full code would then be
IF (
HASONEFILTER ( 'Cases'[name] ),
IF (
BaseLineActualDate = BaseLineBaseDate,
"Not available",
IF ( SinceBaseLine_PHQ >= 6 || SinceBaseLine_GAD >= 4, "Yes", "No" )
),
"--"
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 37 | |
| 29 | |
| 24 |