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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ask
Helper III
Helper III

conditional format

Hi,

 

I need apply for Conditioal Formatting function to a column in a table.  Looks like need to appy for aggregation funciton first before letting me do that. For example "Maximum"  If choose Maximun, the column name will change to "Max of Column Name". How to rename this column name and remove "Max of" ?

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

@ask,

 

If you select different aggregation for your field, the column name will change automatically. And there is no such a option for us to delete the prefix of the column. To work around this issue, you can create another measure to aggregate your field.

  1. Create a table like
    Capture.PNG
  2. Add this aggregation to a slicer.
  3. Create a measure in original table.
    Measure =
    var SelectedItem = MAX(Table2[Aggregation])
    var result = IF(SelectedItem="Sum",SUM(Table1[Amount]),IF(SelectedItem="Max",MAX(Table1[Amount]),IF(SelectedItem="Min",MIN(Table1[Amount]),AVERAGE(Table1[Amount]))))
    return result

Result
Capture1.PNGCapture2.PNG

 

Regards,

Charlie Liao

View solution in original post

3 REPLIES 3
v-caliao-msft
Microsoft Employee
Microsoft Employee

@ask,

 

If you select different aggregation for your field, the column name will change automatically. And there is no such a option for us to delete the prefix of the column. To work around this issue, you can create another measure to aggregate your field.

  1. Create a table like
    Capture.PNG
  2. Add this aggregation to a slicer.
  3. Create a measure in original table.
    Measure =
    var SelectedItem = MAX(Table2[Aggregation])
    var result = IF(SelectedItem="Sum",SUM(Table1[Amount]),IF(SelectedItem="Max",MAX(Table1[Amount]),IF(SelectedItem="Min",MIN(Table1[Amount]),AVERAGE(Table1[Amount]))))
    return result

Result
Capture1.PNGCapture2.PNG

 

Regards,

Charlie Liao

@v-caliao-msft Thank you for the detailed explanation.  How to recove Max AND Min from Max of Amount and Min of Amount in your table below.  Any thought on it?

@ask,

 

Max of Amount and Min of Amount are the default column name when you use Max and Min aggregation. We cannot remove it. As my workaournd, we need to create a measue instead of the column.

 

Regards,

Charlie Liao

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.