cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YJAMOUS
Helper III
Helper III

Adding Average Column

Hi

My question is more about visualization. I'm trying to create a table similar to the one below.

Number of orders each month is sum of quantity. But I want to add additional column which is basically the monthly average of each raw. I'm just struggling on how to do so. Appreciate the help.

 

 

Item#Item DescriptionJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21Monthly Average
A-123Pencil5105251530105510152513
B-321Pen2515351045305101520251020
D-987Papers1001507550200250150100502550100108
1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

If you have a Calendar Table, then this can be solved.  Share the link from where i can download your PBI file.


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

Hi @Ashish_Mathur 

There is no option to upload the pbix

aj1973
Community Champion
Community Champion

Hi @YJAMOUS 

You can use any online services like Onedrive, google drive...and then share the link

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Here is the sample PBIX Sample PBIX Download  

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

mahoneypat
Microsoft
Microsoft

If your current measure is called "TotalQty" and your YM column is called "Month" in your Date table (for example), you can use a measure expression like this to get your result.  Use it in place of your existing measure in your visual, and you will get the average monthly value in the Total column.

 

Qty = AVERAGEX(DISTINCT(Date[Month]), [TotalQty])

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks @mahoneypat . I was keen to know which visualization to use to show similar visualization to the one I showed above.

If I use the "Matrix", I can't add an additional column at the end of the table that will show the row average.

 

YJAMOUS_0-1643421100528.png

 

 

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors