cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Color row based on date condition

Hi,

Can i formatting the table in Report (desktop) and dashboard, for example in one table i want to change row colour based on date condition, for the pass date i want the table row became red,current date the table row became blue. If yes, what language i need to use and how. Thanks

7 REPLIES 7
Highlighted

Re: Color row based on date condition

There is conditional formatting based on column values but not by the entire row.

Highlighted
Helper IV
Helper IV

Re: Color row based on date condition

Thank you for your reply,

 

Ok, if cannot color by 1 row, could i apply to font color or background color in one coloum.

Let say for example, i have 2 coloums, SO number and Closing date.


If date in Closing date is passed, font or background color will color in red.

If date in Closing date is current date or upcoming date, it will color in blue.

The scenario example as below:

 

Can it be apply in report visualization?

 

SO Number

Closing Date

87384374

01/04/2017

98972777

03/04/2017

87293839

20/04/2017

83749848

01/05/2017


Appreciate if you could help me to solve this problem.

Thanks!

Highlighted
Microsoft
Microsoft

Re: Color row based on date condition

Hi @melina,

Currently, you are only able to specify customized cell background colors based on cell values as described in this article.

The feature that change color of column values based on condition in other column is not supported, please vote up this idea: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/16891147-dynamic-conditional-form... .

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper IV
Helper IV

Re: Color row based on date condition

How about using MDX?

Highlighted
Microsoft
Microsoft

Re: Color row based on date condition

Hi @melina,

Do you mean DAX? If so, we are not able to achieve your requirement using DAX.

A workaround is to create a new column using the following DAX, and then create a bar chart to display SO number in different color.
Column = IF(Table3[Closing Date]>=TODAY(),"Green","Red")
1.PNG


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper IV
Helper IV

Re: Color row based on date condition

Thanks for your answer

Highlighted
New Member

Re: Color row based on date condition

Can we do the same  with Table rows ? The complete row should be red or green based on this condition.

 


Regards,

Hassan Tariq

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors