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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Solved! Go to Solution.
Hi, @Anonymous
You can't Pass scalar value to STARTOFMONTH function you need to provide column name
Try below measure
CurrentMonthAverageYield =
VAR CurrentDate = MAX('calender yield'[Date])
var Monthstart = eomonth(today(),-1)+1
var MonthEnd = eomonth(today(),0)
RETURN
CALCULATE(
AVERAGE('Production orders'[Qty in kg]),
FILTER(
'calender yield',
'calender yield'[Date] >= Monthstart &&
'calender yield'[Date] <= MonthEnd
)
)
Hi, @Anonymous
You can't Pass scalar value to STARTOFMONTH function you need to provide column name
Try below measure
CurrentMonthAverageYield =
VAR CurrentDate = MAX('calender yield'[Date])
var Monthstart = eomonth(today(),-1)+1
var MonthEnd = eomonth(today(),0)
RETURN
CALCULATE(
AVERAGE('Production orders'[Qty in kg]),
FILTER(
'calender yield',
'calender yield'[Date] >= Monthstart &&
'calender yield'[Date] <= MonthEnd
)
)
Thank you so much!!!