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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
nishthabhakta
Regular Visitor

Average not returning the expected result

I am facing and issue with Average function where it returns the same values as they are in original rows. 

nishthabhakta_0-1664229534188.png

First Column represents some numbers and the last column I am trying to do average. I am using and excel sheet. I want to filter the values out by Column 2 and the date column. The data is for 2021 and 2022

 

9 REPLIES 9
nishthabhakta
Regular Visitor

@ryan_mayu  

nishthabhakta_0-1664382985475.png

This is what I got using your formula

@nishthabhakta 

you are creating a meausre, pls provide the sample data and expected output.





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

Proud to be a Super User!




Please see the snippet. Below is something I am trying to do

Screenshot (8).png

nishthabhakta
Regular Visitor

Hi! Thanks for the responses but I am still not able to get through getting the correct results

@ryan_mayu Hey Ryan! I was able to solve the issue! Thanks for all the help. I first created a measure and then plugged that in a column to calculate and divide

could you pls provide the sample data?





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

Proud to be a Super User!




Hi,

Share the download link of your PBI file and show the expected result.  Also, do you want a calculated column or a measure?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

You should write a measure (not a calculated column).  To get further help, share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@nishthabhakta 

is this what you want?

Column = AVERAGEX(FILTER('Table',year('Table'[date])=year(EARLIER('Table'[date]))),'Table'[value])

1.PNG

 





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

Proud to be a Super User!




Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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