We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 38 | |
| 34 | |
| 22 |