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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Cell should mark itself if difference is higher than 0,5 to previous cell

Hi dear community,

 

I have a column in which my values are listed. Nothing special, just like this:

 

1
2
2.3
1.9
1.3
 
 
 

 

What I want to accomplish is, that the cells will e.g. turn red if the difference between them is higher than 0.5, like this:

 

1
2██████
2.3
1.9
1.3█████
1.1
1.7█████
1.3

 

Please excuse the poor depiction. If it's easier, it can also be a marking in a cell in the next colum.

 

Thank you very much for your time!

 

Kind Regards

2 ACCEPTED SOLUTIONS
DataNinja777
Super User
Super User

Hi @Anonymous ,

You can achieve your required output in many different ways, but since your numerical column has numbers which are repetitive and not in numerical order, and the data table in Power BI does not store the order as it is in your column I've added an index column using Power Query to make things easier in terms of respecting your original data order without aggregation.  

Then, I've added a column next to your original column to indicate the previous row value.

DataNinja777_0-1716560942536.png

Then, I've added a simple calculated column to indicate the difference with the previous column larger than 0.5 in absolute value as indicated in your example.  

Lastly, I've written a color measure to be used in the background color for orignal column.  

DataNinja777_1-1716561147797.png

I attach an example pbix file.  

Best regards,

View solution in original post

ThxAlot
Super User
Super User

What you need are only 2 simple things:

  1. Index column for keep the orders of your original dataset;
  2. a DAX measure for background color

ThxAlot_0-1716577871413.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
ThxAlot
Super User
Super User

What you need are only 2 simple things:

  1. Index column for keep the orders of your original dataset;
  2. a DAX measure for background color

ThxAlot_0-1716577871413.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Hi @ThxAlot 

Good idea 😀  How did you manage to hide index column from your final output as shown below?  

DataNinja777_0-1716596210674.png

Best regards,

Hello, @DataNinja777 , you can toggle off "Text wrap" for both "Values" and "Column headers"; then manually drag "Index" width to hide it.

ThxAlot_0-1716611296151.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



DataNinja777
Super User
Super User

Hi @Anonymous ,

You can achieve your required output in many different ways, but since your numerical column has numbers which are repetitive and not in numerical order, and the data table in Power BI does not store the order as it is in your column I've added an index column using Power Query to make things easier in terms of respecting your original data order without aggregation.  

Then, I've added a column next to your original column to indicate the previous row value.

DataNinja777_0-1716560942536.png

Then, I've added a simple calculated column to indicate the difference with the previous column larger than 0.5 in absolute value as indicated in your example.  

Lastly, I've written a color measure to be used in the background color for orignal column.  

DataNinja777_1-1716561147797.png

I attach an example pbix file.  

Best regards,

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.