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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
_halim
New Member

Dynamic Color Assignment for Sensor Data in Power BI Matrix

Hello,

 

I have a table called "SensorenDaten_Import" (SensorData) that contains sensor values recorded every minute.

 

SensorDataSensorData


Additionally, I have a table named "Farbvergebungsregeln" (ColorAssignmentRules) which defines target ranges for various sensor values. This table comprises 7 distinct ranges, each associated with 4 priority levels (represented by 4 different colors). These priorities are meant to determine the color based on the assigned range, and if a sensor value falls into multiple target ranges, the color with the lower priority should be applied.
Farbvergebung (ColorAssignment)Farbvergebung (ColorAssignment)





The complexity arises from the fact that the color assignment depends not only on a single sensor value but also on the duration during which the sensor value remains within a specific range. Your insights and guidance in effectively addressing this scenario would be greatly appreciated.


The entire process also needs to work dynamically, meaning that depending on the selected month and sensor, a corresponding color should be displayed.

I've been working on this for weeks and haven't made progress.


Thank you,

Halim

 

image.png

3 REPLIES 3
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi, thank you for your response but I reached the max count of characters with a table (instead of screenshots). I don't know why.

Read the first link again.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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