This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Dear forum,
We are trying to visualize the change in margins per kg or prices per month by product group with a color gradients (red/yellow/green). The columns should show month.year, the lines the product groups and the average selling price as value. In Excel it is rather straight forward (individual conditional formatting per line available). In PowerBi it is more challenging as there is only conditional formatting for the total table available:
Excel:
PowerBi:
Any idea how to implement ? The following website gave a good hint but not sufficient for the challenge:
Power BI Conditional Formatting by Rows | by Patrick Pichler | Creative Data | Medium
Hey @Padycosmos , this is not really helpful I believe....we would need to calculate an %-value for each line based on the min / max and base a measure on this value (similiar to the linked article but for lines, not for rows)
https://medium.com/creative-data/power-bi-conditional-formatting-by-rows-8ce6187e25c6
Would you be able to share the pbix file?
| Feb 2022 | Mar 2022 | Apr 2022 | May 2022 | Jun 2022 | Jul 2022 | |
| Product 1 | 1,20 | 1,60 | 1,15 | 1,18 | 1,30 | 0,90 |
| Product 2 | 9 | 11 | 6 | 6 | 7 | 8 |
| Product 3 | 21 | 30 | 27 | 19 | 25 | 22 |
| Product 4 | 2,3 | 2,8 | 2,9 | 2,1 | 4 | 4,1 |
Attached a dataset, we would need to have gradient color per line, so would mean for Product 4 - 4,1 dark green, 2,1 red
Hope this helps:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |