Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

conditional coloring

Apply conditional coloring to column in table. The value of column(P1) is coming from a measure. The data is on fortnightly(14 days gap) basis.

The requirement is that if the value(652) of current fortnight(14/03/2022) is less than the previous fortnight(28/02/2022) then the value(652) of current fortnight should be in red colour otherwise in green. Similarily for all the other fortnight values of

that column(P1) i.e next we have to compaire between 28/02/2022 and 14/02/2022 values and so on.capture-fortnight.PNG

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@Anonymous 

create a Datedim table and connect to the main table with date

then create the previous fortnight value the way shown in the snap shot

then create color formula shown in the next snap shot and apply the conditional formatting

background color -> field vlaue -> select the measure

 

VijayP_0-1648814480005.png

VijayP_1-1648814538572.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

3 REPLIES 3
Anonymous
Not applicable

It helped me to resolve my query

v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Whether the advice given by @VijayP  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

VijayP
Super User
Super User

@Anonymous 

create a Datedim table and connect to the main table with date

then create the previous fortnight value the way shown in the snap shot

then create color formula shown in the next snap shot and apply the conditional formatting

background color -> field vlaue -> select the measure

 

VijayP_0-1648814480005.png

VijayP_1-1648814538572.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.