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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
slavisha84
Helper I
Helper I

How to add calculated measure with specific conditions?

Hello, 
I have a dataframe that looks like this:

slavisha84_0-1660705449579.png

Using this data I created matrix visual that looks like this:

slavisha84_2-1660705685340.png

 

 

So basically I have dates with brands and products for authorized sellers and I am displaying the prices for their products. 
Now, there is a column called MAP which is the price that the manufacturer set. W

What i need to do is:

1. Create a measure that will add the Map price for particular product

2. Create conditional formating for every Seller column that will turn their price red font or red background if their prices are different than what MAP is suggesting. 

 

So basically we adding one more column that will be called Map which is just a measure to display what is the value by the manufacturer for that particular day for a particular product that all sellers would respect. If the seller does not respect then I want to flag the price for a particular product and its particular value. 

 

What would be the easiest way to go about this?

 

Data and Pbix. file can be downloaded from here: https://1drv.ms/u/s!AhhZq1add5YwjocEpDT1_TXJ-kbrAQ?e=ekcY4c

1 ACCEPTED SOLUTION

Hi,

My wrong,

Add the Column to your table :

MahyarTF_0-1660712308408.png

 

Then in your Matrix Visual, go to the Format Pane, and then in "Cell elements", enable the 'Background color' :

MahyarTF_1-1660712406960.png

 

then click on "FX", then do as below :

MahyarTF_2-1660712464739.png

 

Mahyartf

View solution in original post

4 REPLIES 4
MahyarTF
Memorable Member
Memorable Member

Hi,

Add the Measure Column to your table as below :

Color = if ( Data[MAP] <> Data[ Price ], "#F06514")
 
Then add this column as a Background color to your visual :
MahyarTF_0-1660709987098.png

Appreciate for Kudos

Mahyartf

Hi there, 

Thank you for your response MahyarTF. 

I don't think I understand how you did this. 

Add the Measure Column to your table as below :

Color = if ( Data[MAP] <> Data[ Price ], "#F06514")
 
Do you think add the Measure, or Add column?
 
Also, how did you add it to the background color of the visual?



 

Hi,

My wrong,

Add the Column to your table :

MahyarTF_0-1660712308408.png

 

Then in your Matrix Visual, go to the Format Pane, and then in "Cell elements", enable the 'Background color' :

MahyarTF_1-1660712406960.png

 

then click on "FX", then do as below :

MahyarTF_2-1660712464739.png

 

Mahyartf

Thank you so much for elaborating the answer. I think i got it now.  🙂

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.