Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
40 | |
27 | |
20 | |
14 | |
8 |
User | Count |
---|---|
76 | |
48 | |
46 | |
20 | |
16 |