cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Average measure in power BI

Hi All,

If i have set of values ( 1, 2 , 2 ,4 ) i want to make a measure to take an average without decimal ( i mean the value to be 2 not 2.25 and so on ) 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

@MostafaGamal ,

 

Try this one:

 

_Convert = ROUND(AVERAGE('Table'[Column1]), 0)

 

https://docs.microsoft.com/en-us/dax/round-function-dax

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

12 REPLIES 12
Highlighted
Super User III
Super User III

@MostafaGamal ,

 

Try this measure:

 

_Avg = INT(AVERAGE('Table'[Column1]))

 

https://docs.microsoft.com/en-us/dax/int-function-dax

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Highlighted

@camargos88  thanks it works fine but it converts 3.75 to 3 i want it to convert it to 4 ( the nearst value above or below ) 

Highlighted

@MostafaGamal ,

 

Try this one:

 

_Convert = ROUND(AVERAGE('Table'[Column1]), 0)

 

https://docs.microsoft.com/en-us/dax/round-function-dax

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

Highlighted

@camargos88 it gives me the same result 

Highlighted

@MostafaGamal ,

 

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Highlighted

 

@camargos88 it give me this 

 

Capture.PNG

Highlighted

@MostafaGamal ,

 

Can you send me the values ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Highlighted

@camargos88  this measure will work on a large set of data the values in the data are ( 1,2,3,4 ) the this values will be repeated every day at least 100 

And I want the average to be the nearest value 

If it 3.7 to be 4

If it 3.2 to be 3 

Highlighted

@MostafaGamal ,

 

I don't think it depends on the number os values, on it's the average.

 

See the documentation about this function:

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors