Skip to main content

Power BI

Needs Votes

Dynamic conditional formatting

Vote (357) Share
's profile image

on 01 Nov 2016 02:45:10

Instead of hardcoding a number to use on formatting a table, allow users to use a measure/calculation (DAX) to format dynamically a table.

Comments (56)
's profile image Profile Picture

ef4fd64a 16c7-ea11-a812-000d3a563be2 on 16 Jul 2020 17:53:05

RE: Dynamic conditional formatting

Is it not same as Color measure using field Option
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

examples of such meaures - And these work fine on table and Matrix .

Color Date = if(FIRSTNONBLANK('Date'[Date],TODAY()) <=2016 && AVERAGE(Sales[Sales Amount])2018,"red","yellow"))
Color sales = if([Sales Today] -[sales yesterday]>0,"green","red")

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"green",
/// Add more conditions
"red"
)

's profile image Profile Picture

98f45ea3 797d-4296-b210-9d5c97b5a4ab on 06 Jul 2020 00:01:38

RE: Dynamic conditional formatting

In Tableau there is something called "a paremeter". It would be helpful here!

's profile image Profile Picture

e470f7a7 1525-4920-af9a-a93cac7ee4e3 on 05 Jul 2020 23:49:50

RE: Dynamic conditional formatting

Conditional formatting based on the values of another table (actual vs. target)

's profile image Profile Picture

0bb03b06 9ac3-45f1-8206-9464dcee438e on 05 Jul 2020 23:49:35

RE: Dynamic conditional formatting

This is a MUST!

's profile image Profile Picture

490df479 2a30-4bc9-8c78-0896227ddc8b on 05 Jul 2020 23:48:13

RE: Dynamic conditional formatting

Please add

's profile image Profile Picture

70240bc5 3f47-4db0-94c5-2b64683be6dd on 05 Jul 2020 23:48:11

RE: Dynamic conditional formatting

Please add

's profile image Profile Picture

fb76e591 b69a-4daa-a359-de90455e050d on 05 Jul 2020 23:45:42

RE: Dynamic conditional formatting

Yes, basic functionality in RS should be available in Power BI

's profile image Profile Picture

cb63a473 6048-4cee-a680-1bcac80f4622 on 05 Jul 2020 23:43:06

RE: Dynamic conditional formatting

Yes! And if possible, a stoplight (red, yellow, green). Such like x have been completed within date, yellow are not completed but within expected end date, and red that have not been completed and have reached or exceeded end date.

's profile image Profile Picture

204dc718 a5ba-4517-9bdf-ae147224816d on 05 Jul 2020 23:37:28

RE: Dynamic conditional formatting

definately need this - having the ability to build an expression based on all formatting is needed.

's profile image Profile Picture

32135cd6 d3be-4572-b46b-6773b2a270db on 05 Jul 2020 23:36:49

RE: Dynamic conditional formatting

Yes!!! Really need this feature!