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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
meshkos
New Member

Conditional formatting based on average of previous week value

Hi, I have a table that has daily scores 1-10 (see below). I am currently displaying it as an average value of the week.

I am trying to create conditional formatting with values below. It shows the average of the values in the previous week. I would like it to turn green if the value is higher than the average before and red if it is lower.  Can that be done? eg. the last two values on the bottom row would be red.

meshkos_0-1710160723299.png

 

2 REPLIES 2
meshkos
New Member

Hi, thanks. I am having an issue setting up the measure since my values are not Averaged as a measure but rather I take the Average of all values (see below). Could you suggest how to go about it? 

meshkos_0-1711348848199.png

 

_AAndrade
Super User
Super User

Hi,
Try this measure:

Color =  IF([AverageCW]>=[AveragePW], "Green", "Red")
Notes: 
[AverageCW] --> Your measure with the average of each week
[AveragePW] --> Your measure with the average of previous week

And after that apply that condicional formating for your measure, using this path:

_AAndrade_0-1710162317493.png

_AAndrade_1-1710162338765.png

 

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.