Skip to main content
cancel
Showing results for 
Search instead 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

Reply
Anonymous
Not applicable

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/
Anonymous
Not applicable

Hi @Ashish_Mathur 

There is no option to upload the pbix

aj1973
Community Champion
Community Champion

Hi @Anonymous 

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

Anonymous
Not applicable

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/
Anonymous
Not applicable

YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

mahoneypat
Microsoft Employee
Microsoft Employee

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


Anonymous
Not applicable

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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