Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Solved! Go to Solution.
Hi, @Sashavg14
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, @Sashavg14
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!!!
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
15 | |
10 | |
9 | |
8 | |
7 |