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 all,
I'm trying to create a new column based on the two columns below highlighted in pink.
The new column should say Yes if these two columns have "Yes" and No if one of them is "No".
I tried the the dax below, but it won' work.
Thank you
RG
Solved! Go to Solution.
@ROG Try:
RETURN IF(Flag8Wk_CNSize = 1 && _8WkSigTest = 1, "Yes", "No")
Thanks a million @tamerj1
I was indeed using a wrong measure. The below worked.
@ROG Try:
RETURN IF(Flag8Wk_CNSize = 1 && _8WkSigTest = 1, "Yes", "No")
Thanks for your reply @Greg_Deckler
It's not working because o the data type.
The two measures I used to create the new column a type= text, but the new one I changed from number to general. There isn't an option to change to text for this measure. What woul you do in this case?
@ROG It would appear that one or both of the columns/measures that you have highlighted are returning numbers and not text. So, you need to address those comparisons. Are they really returning "Yes" and "No"? Doesn't seem like it.
Hi @Greg_Deckler
The issue is that @ROG is trying to compare a measure of type percentage ( [8 WK Diff %] ) with a text ("Yes"). Better if he advises what is he trying to achieve.
Thanks a million @tamerj1
I was indeed using a wrong measure. The below worked.
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 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |