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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Automatic conditional formatting tables

Hello!

The general question: Is it possible to automatically fomat tables (like highlight certain values) based on a different table's value? 

The problem: We did this in Excel (and Power BI might not be an easier solution for this). So we sample the groundwater through different wells (first column), in different dates (third column). We analyze it in laboratories for different components (second row). So we have individual value for each component in each well at different dates. Each component have different (or none) limits (third and fourth row), and when a value exceeds that, it's highlighted. That's what the table shows below. 

 

sampletable.JPG
I get these data from time to time (after samplings) and get the results from the laboratory at different tables corresponding to the time --> and then I copy them here and format them. 

The specific question: is there a way to automatically create and format a table like this in Power BI?
My idea would be to create seperate tables for the limits and the values - and then link them together, create a third table and format that that based on the other. But I can't figure that out. Maybe it is not even possible in Power BI and I might have to work in Excel in the future as well. But I still would like to give it a try. 

Any suggestions?

Thank you in advance!
Domokos


Ps.: I am a geologist/hydrogeologist anyway, and I know P BI was not originally made for us, but it would be still awesome to use it. 


1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , The format which you have given is not possible with the standard matrix. In conditional formatting, you have three options scale, rule, and field value. Scale is kind of automatic based on range.

 

you can check those here

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors