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.
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!!!
User | Count |
---|---|
27 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
33 | |
14 | |
11 | |
10 | |
8 |