Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I want to take Monthly Average of few numbers from a certain date range
Both the figures [ Date ] & [ Qty] are available in single table.
I am trying to use following formula :
Average Demand = AVERAGEX(VALUES[Table1[Date].[Month]),CALCULATE(SUM(Table1[QTY],DATESBETWEEN[Table1[Date], Start Date , End Date))
Output I am getting is simply 'Summation' of Qty , not the 'Monthly Average' as desired.
If I remove .[Month] , it gives me certain average but it is based on 'Daily Average' - not 'Monthly' -
Can someone please help in here?
Solved! Go to Solution.
hi @ANHAMINE
you need a dedicated month column to average on, like
Month = FORMAT([Date], "YYYYMM")
then rewrite the measure like:
Average Demand = AVERAGEX(VALUES[Table1[Month]),CALCULATE(SUM(Table1[QTY],DATESBETWEEN[Table1[Date], Start Date , End Date))
hi @ANHAMINE
you need a dedicated month column to average on, like
Month = FORMAT([Date], "YYYYMM")
then rewrite the measure like:
Average Demand = AVERAGEX(VALUES[Table1[Month]),CALCULATE(SUM(Table1[QTY],DATESBETWEEN[Table1[Date], Start Date , End Date))
It worked ! You are simply magical 😊
Thank you for all your help !
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 5 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |