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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Maximum of a measure column-wise

Hello all,

 

I am stuck with one simple issue in DAX.

 

I have a measure to find employees' scoring. I used a measure cause I want to see it change per days, and it does. But now I need to normalize that scoring, and I selected the simpliest of (x-min)/(max-min). BUT here the problem comes: when I try to find the maximum of that measure, it is refined per employee, because measures work rows-wise, not column-wise:

 

Employee  Scoring MaxScoring (MAXX(Table, [Scoring])

A               30           30

B               40           40

C               60           60

 

While what I need is actually

 

Employee  Scoring MaxScoring   MinScoring  NormalScoring((Scoring-MinScoring)/(MaxScoring-MinScoring))

A               30           60                 30                (30-30)/(60-30)=0

B               40           60                 30                (40-30)/(60-30)=0.3

C               60           60                 30                (60-30)/(60-30)=1

 

Of course, I could find Max and Min over selected period manually, but I need this to be changing dynamically and within 0-1 range.

 

Any help is appreciated. 

 

Thank you and kind regards,

Taisiya

4 REPLIES 4
sdjensen
Solution Sage
Solution Sage

Hi @Anonymous,

 

You could try something like this... (you may need to replace ; with , in your DAX formula depending on your location)

 

MaxScoring = 
MAXX( 
    ADDCOLUMNS(
        ALLSELECTED( Table1[Employee] );
        "_scor"; [Scoring]
    );
    [_scor]
)

MinScoring = 
MINX( 
    ADDCOLUMNS(
        ALLSELECTED( Table1[Employee] );
        "_scor"; [Scoring]
    );
    [_scor]
)

NormalScoring = DIVIDE([Scoring] - [MinScoring]; [MaxScoring] - [MinScoring] )
/sdjensen
Anonymous
Not applicable

I still get maximum/minimum value per row, not among all employees 😞

v-yuta-msft
Community Support
Community Support

Hi taisiya,

 

"Of course, I could find Max and Min over selected period manually, but I need this to be changing dynamically and within 0-1 range."

 

<--- What does dynamically mean in your requirement? Could you share more details about your requirement?

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Hi @v-yuta-msft,

 

What I mean is that I try to calculate scoring per employee per dynamically changing time period, so I cannot just use 'static' calculated columns rather than I need a function to calculate normalized scoring per day, per 2 days, per week.... per period selected on a timeline. I hope it is more clear now.

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.