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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vishnuprashanth
Helper III
Helper III

Normalise the data in a column between 0-1 and find the mean value using date

I have the dataset as shown below. I am trying to plot a radar chart with this data. Since the data is not normalized, the attribute with least values is centered in my chart. So, I thought of normalizing this data would give me better results. 

DatePlayerAttributeExpectedPerformance
21/05/2018AEnergie4500052000
21/05/2018ADistance1500014000
21/05/2018AV<832502300
21/05/2018A8<V<14,425503000
21/05/2018A14,4<V<1915001300
21/05/2018A19<V<24200170
21/05/2018A24<V<3015075
21/05/2018A30>6510
21/05/2018AAcc2025
21/05/2018ADec3532
21/05/2018BEnergie4600045000
21/05/2018BDistance1550015000
21/05/2018BV<835503250
21/05/2018B8<V<14,445502550
21/05/2018B14,4<V<1913001500
21/05/2018B19<V<24200200
21/05/2018B24<V<30150150
21/05/2018B30>6565
21/05/2018BAcc2020
21/05/2018BDec3535

 

Normalize the data in the 2 columns(Expected and Performance). 

I tried to use 

Normalized_performance = ('table'[Performance] - MIN('table'[Performance])/(MAX('table'[Performance]) - MIN('table'[Performance])))


But this normalization technique doesn't work as I expected. Is there any way I could normalize the data between 0-1? 

 

 

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

HI @vishnuprashanth

 

I created the following calculated column which I made sure I formatted to multiple decimal places.

 

Column = 
VAR Xi = 'Table1'[Performance]
VAR MnX = MIN('Table1'[Performance])
VAR MxX = MAX('Table1'[Performance])
RETURN DIVIDE(Xi-MnX , MxX - MnX) 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Employee
Employee

HI @vishnuprashanth

 

I created the following calculated column which I made sure I formatted to multiple decimal places.

 

Column = 
VAR Xi = 'Table1'[Performance]
VAR MnX = MIN('Table1'[Performance])
VAR MxX = MAX('Table1'[Performance])
RETURN DIVIDE(Xi-MnX , MxX - MnX) 

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Is it also possible to do it as a measure instead of a column? Thus, it's getting normalised according to my current filter selection and always showing at least one record scoring 1.

Thanks, phil. That helps. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.