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

Getting Quartely Average from Months

Hey,

 

My dataset has a column for months and a corresponding column for the Quarter the month falls in, When putting the data in a simple bar chart I am getting a sum of my data in Quarter 1&2 etc rather than a average of the Jan-Mar in quarter 1, have played around with if and tried a few dax expressions but nothing has worked yet,

 

The way I want the data to be presented in a sum(jan and feb and Mar) divided by 3 and this would be quarter 1 and so on for q2 etc,

 

Any help would be brill,

 

Thanks

2 REPLIES 2
amitchandak
Super User
Super User

@Bill_OC ,

Try like

QTD Avg Sales = CALCULATE(averagex(Values(Date[Month Year])CALCULATE(SUM(Sales[Sales Amount]))) ,DATESQTD(('Date'[Date])))

 

Qtr Sales = CALCULATE(averagex(Values(Date[Month Year])CALCULATE(SUM(Sales[Sales Amount]))) ,DATESQTD(ENDOFQUARTER('Date'[Date])))

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak 

 

Thanks for reply, the name of my dataset is 2018 and the column called Month has just months and the column FTE % is the column is wish to get the average off across the quarters

 

QTD Avg Sales = CALCULATE(averagex(Values('2018'[Month])CALCULATE(SUM('2018'[FTE %]))) ,DATESQTD(('2018'[Month])))
 
I have filled out your first formula to match my dataset but its not working. Any tips?

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.