Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi there,
I’m relatively new using PBI and hopefully somebody can help me figuring out how to write a DAX statement.
My table name is ‘AnswerLine’ and within this table I’ve got a question column (Question) and an answer column (Answer)
I want to do a measure that when a combination of different answers is set on Y, a column (value) will get a value. If the answer is N, there is no action needed.
Example:
Question “ONG000.04” = Y & “ONG000.05” = Y then Value = 2
I’ve got 9 different combinations and in total we have 23 different questions.
Not sure if anybody can help me out with this input. If more input is needed, please let me know!
Thanks in advance for response!
Solved! Go to Solution.
Maybe try this primitive solution:


Maybe try this primitive solution:


Thanks for your reply, the following solutions based on your answer works for me:
Measure= IF(
AND(
OR(
CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.04");
CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG000.05"));
CONTAINS(BaseORderAnswerLine;BaseORderAnswerLine[answer];"Ja";BaseORderAnswerLine[Question];"ONG020")
)
;1;0)
with this, I have the right meausure output!
Adding a conditional column in the query editor perhaps?
If this works for you, please mark my answer as sovled. Cheers
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |