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 all, (simple request)
While everyone has the issue of 'How to replace Blank() with 0' I'm actually trying to do the opposite.
Instead, I would like to 'Replace 0 with Blank()' aka a Blank space value result. (_____)
Below I just want 0 to be a Blank space value
What DAX direction would you recommend for this?
Thanks for any feedback and for pointing me in the right direction!
Right click on the column in power query and use the replace values option. Replace '0' with 'null'
Maybe use a measure instead of a column:
Name measure = IF(SELECTEDVALUE([min THC%] = 0, BLANK(), SELECTEDVALUE([min THC%])).
If min THC% should be summed, then use SUM instead of 'SELECTEDVALUE'.
There is also an option to transform your data, but then you're not using DAX. Change column to text and replace 0 with "" and change back..
I recomand you use conditional formatting.
0(Zero) would be colored in write.
1) Values > Conditional Formatting > Background Color
2) Format Style : Rules
Rules - If value : = 0
then = white color
@Greg_Deckler @Anonymous I found this post as I am looking for the same thing. However, I'm not sure the answer above is exactly what the original poster was looking for. I think he wanted (as do I), an actual empty cell, with no 0 and not a cell that has the word "Blank" in it. Just an empty cell. Adding the BLANK() seems to add that word to the cell, rather than just returning an empty cell. (and I am looking for a measure, not a column). Any suggestions?
@Anonymous Maybe Column = IF([Min THC%] = 0,BLANK(),[Min THC%])
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 |
---|---|
25 | |
12 | |
10 | |
9 | |
9 |
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
12 |