Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have a data table that contains responses from a set of audit questions which have been answered multiple times by different users with yes/no answers. I then have a data table that has the expected correct answer for each question (examples below)
I want to be able to create a column in the audit data table that compares the response against the "expected response" and then returns either a true or false result dependent on if it matches.
I am struggling to write the DAX for this can anyone help?
AUDIT DATA
| question | audit response |
| have all staff members had training | yes |
| have all volunteers had training | no |
| are all doors fitted with external locks | no |
| have all staff members had training | no |
| have all volunteers had training | yes |
Expected responses
| question | expected response |
| have all staff members had training | yes |
| have all volunteers had training | yes |
| are all doors fitted with external locks | yes |
Solved! Go to Solution.
thank you that works perfectly
I wouldn't solve this with DAX. I would join the two tables by the Question field.
Then, in Table, bring over Responder Name, Question and Audit Response from Audit table and Expected response from the Expected Response table.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 14 | |
| 8 | |
| 8 | |
| 8 |