This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello All.
I need to calculate the Average Daily Spend.
Average Daily Spend = Total cost / Avg Days for the selected period.
ex: If we select the period 1 to 25 then Average days should be 25.
currently total rows of Average Daily Spend column in average. But I need to show it in SUM instead of AVERAGE.
According to the below DAX, logic is working fine except for total rows.
Avg Days =
var startofthisperiod = FIRSTDATE(Dates[Date])
var endofthisperiod =LASTDATE(Dates[Date])+1
var noOfDays = DATEDIFF (startofthisperiod, endofthisperiod,DAY)
return
noOfDays
AVG Daily Spend =
DIVIDE(SUM(Table[Cost]),
[Avg Days]
)
Thanks in Advance.
Swathi Kundar
Hi @SwathiKundar ,
Please try to create a measure like below:
Measure = SUMX(VALUES('Table'[Month]),[AVG Daily Spend])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It's possible but that's a pretty strange total to show. How do you interpret it? What does that sum of averages represent?
If it's possible then how achieve it.
You'd need to iterate over one level of granularity where you take the average below that level and sum up those averages. I can't tell what determines what level of granularity you want to change your aggregation rule at though.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |