cancel
Showing results for
Did you mean:

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

Helper I

## Highlight max value of specific rows and column

Hi,

DAX driven help:
I'd like to highlight the max sum values of a specific row and a specific column to provide orientation in a visually driven table.

This will provide an orientation cross of the max value area in the blue area.

Each cell in the blue area represents the max sum value for each row or column.  Near the periphery of the eye the sum values are less than max.

The only way I can think of doing this is adding +100 to each max value in row 0 and column 0.  Then with conditional formatting I can highlight the max+100 values with another color resulting in the orientation cross.

Currently, it looks like this:

Expected from conditional formatting:

Close-up of visual table axis:

Expected column 0 max values = +100

Expected row 0 max values = +100

Here is the Excel file for anyone to help provide a solution or guidance:

1 ACCEPTED SOLUTION
Community Support

Hi @ronbermudez ,

Please update the formula of measure as below and check if it can return the correct result...

``````Measure =
VAR m =
CALCULATE ( MAX ( raw_data[Y] ), ALLSELECTED ( raw_data ) )
RETURN
IF (
[Sum of Value] = m
&& MAX ( raw_data[y] ) = 0,
[Sum of Value] + 1,
[Sum of Value]
)``````

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support

Hi  @ronbermudez ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Helper I

If I hard code the max value, it works.  If I use a variable to attain the max value, it doesn't work.

The measure I tried to get the horizontal part of the cross:

measure =

VAR m = 16

VAR otherMAX(raw_data[Y])

return

IF( [Sum of Value] = 16  &&  MAX(raw_data[y]) =0 , [Sum of Value] +1, [Sum of Value])

The above measure works when I hard code 16 or use VAR m.  When I use VAR other, it doesn't work and +1 is added to each cell of the entire row.  In other words, I only need +1 added to the max values of the row.

I can't hard code a value, because the max value of the row could change depending how I have the data pivoted.

I'm stumped.  Need more help

Community Support

Hi @ronbermudez ,

Please update the formula of measure as below and check if it can return the correct result...

``````Measure =
VAR m =
CALCULATE ( MAX ( raw_data[Y] ), ALLSELECTED ( raw_data ) )
RETURN
IF (
[Sum of Value] = m
&& MAX ( raw_data[y] ) = 0,
[Sum of Value] + 1,
[Sum of Value]
)``````

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Helper I

@v-yiruan-msft

Thank You very much.  I appreciate the help from you.  I've accepted your solution.

Announcements

#### Power BI Monthly Update - November 2023

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

#### Fabric Community News unified experience

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

#### 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