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.
I have measures to calculate based on a column's data of Yes or No. I have a total count of a letter that is sent out, and based on the actions responded by the employee they are captured in 3 columns of data - value1, value2, value3 and each are set to Yes or No values. Example if Value 1 mean letter recieve, Value 2 Means letter response received, and Value 3 employee reports the letter
My calculation for individual columns for yes is : V1_YesCount = Calculate([TotalLettersSent],LetterTable[Value1] = "Yes)
I now want to only have a total count (# of employees) that said Yes for Value1 and Yes for Value 3.
Solved! Go to Solution.
Hi @Anonymous,
Try the below measure.
V1_YesCount = Calculate([TotalLettersSent],Filter('LetterTable', LetterTable[Value1] = "Yes" && LetterTable[Value3] = "Yes"))
Best Regards
Simran Tuli
Hi @Anonymous,
Try the below measure.
V1_YesCount = Calculate([TotalLettersSent],Filter('LetterTable', LetterTable[Value1] = "Yes" && LetterTable[Value3] = "Yes"))
Best Regards
Simran Tuli
Thank you, that was perfect!!
Please try this expression
V1V3_YesCount = Calculate([TotalLettersSent],LetterTable[Value1] = "Yes" && LetterTable[Value3] = "Yes")
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |