Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |