Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello
I have a measure which I use in a State map as follows, Acccount_State = Account[Ship Country]&", "&Account[Ship State]&", "&Account[Ship_City]
Expected result is United States, Texas, El Paso
Sometimes the Ship state field contains "N/A". In such rows, I would like to replace "N/A" with just blank as such
United States,,El Paso. How should I write the Account_State measure to return this result.
Will a blank state showup correctly or else what should I do?
Solved! Go to Solution.
@mbalraj , Try like, In DAX
Acccount_State = Account[Ship Country]&", "& if(Account[Ship State]= "N/A",blank() , Account[Ship State] ) &", "&Account[Ship_City]
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |