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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
nmck86
Post Patron
Post Patron

Simple Average

Hello! I have been using an AVERAGEX formula in power bi; however, I am noticing that this formula doesn’t work with breakdowns by category. I want to be able to take the average and divide it y total months of data available and it seems to only do the average over months with data available. I want the divide to be simple division over month no matter if a value is available or not.
11 REPLIES 11
v-yuta-msft
Community Support
Community Support

Hi nmck86,

 

"When I do the math of happy-mad I expect Category_Breakdownto tie to Total_Score and it does! However, I need this to be the same for the new AVG formula that I am leveraging. I need my AVG formula to tie back to the Category Breakdown2"

 

<--- Your requirement is not so clear, could you please clarify more details about your logic and what you want to achieve? For example, are you doubting whether result of [AVG] is different from [Total_Score]?

 

Regards,

Jimmy Tao

Hi,
I would like for my results below to total 19.06% instead of 27.24%. Since some months do not have values my formula is excluding those records. In this case it would be divided by 10 because there are only 10 months but it will change every month depending on the months selected. For instance next month it will be 12 months of data even if all months do not have values I need the data to divide by the full 12 months for the average.

Current formula:

AVG_Category_Breakdown =
AVERAGEX(SUMMARIZE(VALUES('download to use'[Month]),[Month],"ABCD",[Category_Breakdown]),[ABCD])

Hello!
I have a measure in power bi that has the % breakdown for a particular category and after I get that I am attempting to create an average. This average however is excluding the months without values. Is there a way to get Power BI to include those months with no values? In the below example I am expecting to see 19.07 or close to that.
It may require a date_dim tbl that I didnt create in the file I am sharing but wanted to give an example quickly.

I want the average to be a straight divide by the months so in this case it would be a straight divide by 12. It wouldn’t be 19.06 in this example it would be less. But if I selected on Jan-Oct it would be 19.06 or close to it. I need the calculation to do a straight average divided by each month. If we are looking at only Jan, Feb & March for instance and I select a filter for those months I would expect the average to be 13.06%.

I still don't understand what "straight divide by the months" means. What number are you dividing by 12?

 

Can you show the calculation for how you are getting 19.06% or 13.06% from the underlying column?

FYI, I can't open the file. What version did you author it with? I tried to open with latest (December) version of Power BI Desktop.

I just updated and confirmed this is on the Dec 2018 version of Power BI.

 

https://drive.google.com/file/d/1siXptcM3FGuvQ3VH4qbC3aBdgFUa0Dgl/view?usp=sharing 

OK, I got it open.

 

I can't figure out why you want the average to be around 19. It looks correct as it is.

 

13.76/80.30 = 17.13%

 

How do you get the result you're expecting?

Let me explain.

Category_Breakdown ties to Total_Score and that is correct. However, the Category_Breakdown2 (the formula you shared) is giving me the same results as Category_Breakdown. However, I need this to be the same for the new AVG formula that I am leveraging.
I think this all has something to do with the AVG formula that I am using to simply get a straight average. I need my percentage breakdown to work using a similar functionality. I need the breakdown to also be a simple AVG.

@nmck86,

I am not clear about your expected result. Could you please elaborate more about the desired result based on the PBIX file?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sure, I am expecting my values for mad customers to add up to an average of 19.06 instead of what it is currently displaying. I want it to add all months instead of only the ones with values. In this case it would be a divide by 10 months since in this case the data only goes through October.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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