Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello All
I have these two DAX measures. I basically need to color one column two different colors (Red if date in other column is within 45 days and Yellow if within 60 days. I will need the 45 day rule to have higher precedent so that it overrides the 60 day Yellow when the appropriate time comes.
Does anyone know how to nest these two statements together and give the 45 day higher precedent?
45_Day_Color = if(FIRSTNONBLANK(Elig_List[45_Day_Alert],TODAY()) <today(),"red","white")
60_Day_Color = if(FIRSTNONBLANK(Elig_List[60_Day_Alert],TODAY()) <today(),"yellow","white")
I appreciate any help!
Solved! Go to Solution.
Hi @Userpath77 ,
I believe SWITCH would help here.
MEASURE =
SWITCH(
TRUE(),
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<45,
"RED",
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<60,
"YELLOW",
"WHITE"
)
Hi @Userpath77 ,
I believe SWITCH would help here.
MEASURE =
SWITCH(
TRUE(),
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<45,
"RED",
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<60,
"YELLOW",
"WHITE"
)
Thanks Payeras-----I had to adjust it a little, but worked perfect! Thanks again.
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |