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
closed_sku_count_lastmonth =
VAR eolm = ENDOFMONTH(DATEADD('Date'[Date], -1, MONTH))
RETURN
CALCULATE(
COUNT(dc_fact_table[item_code]),
[status] = "closed",
'Date'[Date] = eolm
)
This error appear when I wrote this
Hi @Anonymous try below
closed_sku_count_lastmonth_test =
VAR eolm = ENDOFMONTH(DATEADD('Date'[Date], -1, MONTH))
RETURN
CALCULATE(
COUNT(dc_fact_table[item_code]),
[status] = "closed",
FILTER('Date','Date'[Date] = eolm
)
)
Did I answer your question? Kudos appreciated / accept solution!
Proud to be a Super User!
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |