Forum Discussion
Formatting based on values in 2 columns (Text and Date)
Hi,
I am very new to PowerBi and would like to ask for some advice.
I have a SQL DB with a table (CAMR) which records when tasks were last performed.
Tasks are identified by Frequency, which is a text field, and Last Done Date, which is a datetime field.
I am trying to create a report which lists when the tasks were last done, DONE.
However, I would like to format it so that if a Weekly task`s hasn`t been done in the last 7 days, it changes background to red or something. And like wise, if a Monthly task hasn`t been done for 31 days, change background.
I have been able to get the datediff value in days, but not sure how to link this all up.
Any advice would be greatly appreciated.
7 Replies
- AnonymousNot applicable
Hi,
As far as I know, you can format only numbers column and not text.
Meaning you can format the 'DATEDIFF' column, but not the others.
Ta!
- kevinsray
Helper II
Is there a way to assign a number to text in Frequency, then maybe do some formatting?
e.g. If Daily = 1. Then DV =1. If DV = 1 and DIFFDAYS >= 7 do some formatting?- AnonymousNot applicable
You can create a column of numbers based on your other columns.
Use the IF function for that.
But you will be able to format (colors,background,etc.) the numbers column only.
More:
https://community.powerbi.com/t5/Desktop/conditional-formatting-text/td-p/408134