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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors