cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.

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
Regular Visitor

This is what I got using your formula

Super User

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

Proud to be a Super User!

Regular Visitor

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

Regular Visitor

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

Regular Visitor

@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

Super User

could you pls provide the sample data?

Proud to be a Super User!

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
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
Super User

is this what you want?

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

Proud to be a Super User!

Announcements

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Monthly Update - July 2024

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

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors