Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |