Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I would like to create a conditional formatting to the below 'Available' date column.
The conditions would be:
Thanks,
Henry
Solved! Go to Solution.
Hi @HenryJS
create a calcualted column
Column = SWITCH(TRUE(),
DATEDIFF(TODAY(), [Available], WEEK) > -1 && DATEDIFF(TODAY(), [Available], WEEK) <=2, "Green",
DATEDIFF(TODAY(), [Available], WEEK) < 0 && DATEDIFF(TODAY(), [Available], WEEK) >= -2, "Amber",
DATEDIFF(TODAY(), [Available], WEEK) < -2, "Red",
BLANK()
)then set this column as a field for conditional formatting in the visual settings
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @HenryJS
create a calcualted column
Column = SWITCH(TRUE(),
DATEDIFF(TODAY(), [Available], WEEK) > -1 && DATEDIFF(TODAY(), [Available], WEEK) <=2, "Green",
DATEDIFF(TODAY(), [Available], WEEK) < 0 && DATEDIFF(TODAY(), [Available], WEEK) >= -2, "Amber",
DATEDIFF(TODAY(), [Available], WEEK) < -2, "Red",
BLANK()
)then set this column as a field for conditional formatting in the visual settings
do not hesitate to give a kudo to useful posts and mark solutions as solution
My powerbi didn't even recognize switch. This looked so promising but did not work for me
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 32 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |