Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |