Forum Discussion
e77948
4 years agoRegular Visitor
How do I write an IF then formula
I have a table and I need to show the data depending upon one column, I am trying to write a measure that will show the number of work items if that colu
- 4 years ago
Ah, ok, my bad. Text functions don't skip blanks.
Try this one:
if [Tags] = null then "Primary" else if Text.Contains([Tags], "Secondary") then "Secondary" else "Primary"Pete
Anonymous
4 years agoNot applicable
Hi e77948 ,
Sorry for that the information you have provided is not making the problem clear to me.
Can you please share more details (your tables, your problems, the expected output) to help us clarify your scenario? Or try methods provided by BA_Pete .
Refer to:
How to Get Your Question Answered Quickly - Microsoft Power BI Community
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Best Regards,
Eyelyn Qin
e77948
4 years agoRegular Visitor
if Text.Contains([Tags], "Secondary") then "Secondary" else "Primary" or if isBlank([Tags], "Primary")