The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
For my symboles , i always use DAX using UNICHAR function and it gives me correct results. for e.g
But i wonder , if I can write Hexa colour codes within DAX and not do anything from conditional formatting , Is it possible ?
> I tried using Hexa codes in place of unichar above and it does not work ..
Solved! Go to Solution.
Hi @kumar27 ,
In my opinion, it does not work directly, you still need to use the conditional format operation. First adjust your code.
Colour =
SWITCH(TRUE(),
SUM(financials[sales])>25000000, "#000000",
BLANK())
Then choose color:
As your colour code is black, the change is not visible.A little adjust.
Return :
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @kumar27 ,
In my opinion, it does not work directly, you still need to use the conditional format operation. First adjust your code.
Colour =
SWITCH(TRUE(),
SUM(financials[sales])>25000000, "#000000",
BLANK())
Then choose color:
As your colour code is black, the change is not visible.A little adjust.
Return :
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Revenue KPI Color = SWITCH(
TRUE()
,SUM('Sales'[Revenue]) < 50000000, "#f44242"
,SUM('Sales'[Revenue]) < 1000000000, "#f4f142"
,SUM('Sales'[Revenue]) > 1000000000, "#5ff442",
"#f44242"
)
Find more >> Controlling Conditional Formatting Using DAX (bluegranite.com)
Regards,
Ritesh