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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
milkynight
Helper I
Helper I

Conditional formatting

Hi everyone,

 

Appreciate help and guidance for conditional formatting with the below context. I have tried several ways but the result so far is not correct.

 

Below table is the number of units by store level in a weekly format. Data is imported from Excel file and not from a measure or calculated column.

I would like to highlight all the value that is higher than the average units of Feb23 W1 and W2.

 

For example:

Active Supermart - average FebW1 and FebW2 = 8771+8743 = 8757 => any value that is higher than 8757 will be highlighted

 

Thanks much for your help!

 

milkynight_0-1687341965012.png

2 REPLIES 2
milkynight
Helper I
Helper I

Hi @Anonymous , many thanks for the detailed guidance!

However, some issues i encounterd: 

 

Point 3 - there is no Advanced Controls button in my PBI version. Am I using old version and upgrade required?

milkynight_0-1687416609514.png

 

I turned ON for Font Color and a window popped up with little fields compared to your guidance:

milkynight_1-1687416721984.png

Much appreciate your guidance on this!

 

 

 

Anonymous
Not applicable

HI @milkynight ,

try below steps

 

 

  • Select the table visual that you want to apply conditional formatting to.

  • In the "Visualizations" pane, navigate to the "Conditional formatting" section.

  • Click on the "Advanced controls" button (represented by a three-dot icon) next to "Color scale" or "Data bars" options, depending on your preference.

  • In the advanced controls, select "Add rule" and choose the "Field value" option.

  • In the "By field" dropdown, select the field that contains the units data for each store level (e.g., "Units").

  • In the "Based on field" dropdown, select the field that represents the week (e.g., "Week").

  • In the "Format by" dropdown, select "Greater than".

  • In the "Based on field value" dropdown, select "Average".

  • In the "By value" dropdown, select "All values in column".

  • In the "Value" dropdown, enter the DAX expression to calculate the average of units for Feb23 W1 and W2. Assuming your field for units is named "Units" and the field for week is named "Week", the expression would be:

    less
  • AVERAGEX(FILTER('YourTable', 'YourTable'[Week] IN {"Feb23 W1", "Feb23 W2"}), 'YourTable'[Units])
  • Choose the desired formatting options, such as the color or data bar style, to highlight the values that are higher than the calculated average.

  • Click "OK" to apply the conditional formatting.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.