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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am getting below mentioned error with the following DAX statement:
An Argument of Function Date has wrong data type or result is too small or too large
Solved! Go to Solution.
Try this alternate
Sales Avg1 =
VAR EndD =
CALCULATE ( MINX ( Query2, Query2[DATE1] ) )
VAR StartD =
DATE ( YEAR ( EndD ) - 1, MONTH ( EndD ), DAY ( EndD ) )
RETURN
AVERAGEX (
FILTER ( Query1, Query1[Date] <= EndD && Query1[Date] >= StartD ),
Query1[Net_Revenue]
)
Try this alternate
Sales Avg1 =
VAR EndD =
CALCULATE ( MINX ( Query2, Query2[DATE1] ) )
VAR StartD =
DATE ( YEAR ( EndD ) - 1, MONTH ( EndD ), DAY ( EndD ) )
RETURN
AVERAGEX (
FILTER ( Query1, Query1[Date] <= EndD && Query1[Date] >= StartD ),
Query1[Net_Revenue]
)
This has worked!
Many thanks 🙂
The 2nd argument of FILTER must return a BOOLEAN expression (true or false)
DATESBETWEEN(Query1[Date],EndD,StartD) returns a date table
Thats why it throws an error
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 41 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 186 | |
| 116 | |
| 95 | |
| 64 | |
| 45 |