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.
I have issue with my dax expression with this error message
"The True/False expression does not specify a column. Each True/False expressions used as a table filter express must refer to exactly one column". The Dax code is
Sales with 11 months =
var mindate = MIN(Date[Date])
var maxdate = MAX(Date[Date])
var _sum = CALCULATE( SUM ( Sales[Amount]), USERELATIONSHIP (Date[Date], Sales[Date]))
RETURN
CALCULATE( _sum, FILTER( Sales[Type] IN {"Online", "Shop"}), EDATE(mindate, -11), maxdate)
How can I fix the dax above without error message
Solved! Go to Solution.
Okay, so the issue is with your filter in your CALCULATE expression:
FILTER( Sales[Type] IN {"Online", "Shop"}), EDATE(mindate, -11), maxdate)
The syntax should be FILTER(Table, Filter Expression) so I think your first one should be
Okay, so the issue is with your filter in your CALCULATE expression:
FILTER( Sales[Type] IN {"Online", "Shop"}), EDATE(mindate, -11), maxdate)
The syntax should be FILTER(Table, Filter Expression) so I think your first one should be
Your maxdate variable is incorrectly named as mixdate