The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Here we have found a simple way to find out the average sales for the calender month.
Calender Qunatity Sum =
Var startMonth = Date(Year(Today()),1,1)
Var EndMonth = EOMONTH ( TODAY (),-1)
Return
Calculate(SUMX(Table Name,Qunatiy Column),
Filter(All(Table Name),
'Date Table >= startMonth &&
'Date Table<= EndMonth
)
)
Calender Quantity Average =
Var Month = MONTH(TODAY()) - 1
return
divide(Calender Qunatity Sum,Month,0)
@Deepankar989P , Make sure you have month year columns
Calculate(SUMX(Values('Date Table'[month Year]),calculate(Sum('Date Table'[Qunatiy Column]))),
Filter(All('Date Table'),
'Date Table' >= startMonth &&
'Date Table'<= EndMonth
)
)
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |