The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
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.
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.
I attach an example pbix file.
Best regards,
What you need are only 2 simple things:
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
What you need are only 2 simple things:
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?
Best regards,
Hello, @DataNinja777 , you can toggle off "Text wrap" for both "Values" and "Column headers"; then manually drag "Index" width to hide it.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
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.
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.
I attach an example pbix file.
Best regards,
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |