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 nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
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 |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 38 | |
| 31 | |
| 27 |