Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Regular Visitor

Generating Row wise heatmap

Dear Experts,

I have a scenario where I have written a measure to calculate the % consumption of stock with respect to the total available stock over the current month and future months.

Used that in a matriX w.r.t to Products and Month-yy and created a heat map.

The problem here is with normal condition formatting it is considering all the products across all the months and assigning the color pattern

What I require is it should compare row-wise only for that particular product across the month and based on the month-wise highest and lowest coverage should provide the color scheme. 

Thanks in advance. 






Super User
Super User

@RajibPBI860721 , You can create a color measure.



color =
switch ( true(),
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" && sum('Table'[Value]) >500,"lightgreen",
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" && sum('Table'[Value]) >1000,"lightgreen",
// Add more conditions



and use that in conditional formatting using the field value option?

How to do conditional formatting by measure and apply it on pie?



Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors