Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am needing help writing my DAX statement to a PBI friendly formula for a query.
Calc_Analyze_Behavior:
Case when
sum(
Case when [pq01_score] is null then 0 else [pq01_score] end,
Case when [pq02_score] is null then 0 else [pq02_score] end,
Case when [pq03_score] is null then 0 else [pq03_score] end)
=3 then 1 else 0 end
I tried to use SWITCH but it wasn't working well for me. Any help is much appreciated 🙂
Analyze_Behavior =
var __score1 = sum( 'ADAPT Data'[pq01_score] )
var __score2 = sum( 'ADAPT Data'[pq02_score] )
var __score3 = sum( 'ADAPT Data'[pq03_score] )
var __sum = __score1 + __score2 + __score3
return
( __sum = 3 ) * 1
Best
D
You can also do it in Power Query Editor instead of DAX. Add conditional collumn and set rules to use certain columns and/or values as outputs
That seems overly complex
Calc_Analyzer_Behavior =
IF([pq01_score] + [pq02_score] + [pq3_score] = 3,1,0)
Hey Greg! Thanks so much for your help!