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.
Hello There,
I am working on color coding measure by comparing Actual Vs Target.
If Actual is blank - I don't want color
if Target is blank - I don't want color
if Actual & Target both are blank - I don't want color
This can be achive by mentioning Actual <> blank() && Target <> blank()
but I have some values in target or in actual as 0 and I want to comapre them with respective target to give color but after blank condition it is showing no color.
I believe it considering 0 as Blank
can someone help on how to fixed this issues.
Solved! Go to Solution.
Hi,
Please try somethnig like below.
if( Actual == blank() && Target == blank(), blank(), color condition)
by using two equal signs, ==, it only catches blank, and it does not catch zero.
Hi,
You're absolutely right, if you do a test like :
[Value]=0 or [Value]=BLANK() Power BI consider 0 and blank as the same.
To differentiate them you should use :
[Value]==0 or [Value]==BLANK() or ISBLANK( [Value])
all of them making a difference between null (blank) and 0.
And you can use NOT to make your test :
NOT ISBLANK( [Actual])
Hope it helps, let us know...
Hi,
Please try somethnig like below.
if( Actual == blank() && Target == blank(), blank(), color condition)
by using two equal signs, ==, it only catches blank, and it does not catch zero.
Thanks Worked Perfectly 🙂
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
13 | |
13 | |
11 | |
6 |