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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
I'm building up a rather complex measure but I'm getting a strange error thrown at me. Here's the beginning stage of my measure:
Solved! Go to Solution.
@Anonymous , If you need to group data by week level you don't need all except, because summarize id going to group it
Measure Draft = maxx(SUMMARIZE('Table', 'Table'[SERVICE_WEEK], "Max Date", max('Table'[SERVICE_DATE]), "Count Days", DISTINCTCOUNT('Table'[SERVICE_DATE])), [SERVICE_WEEK])
what is the benefit SUMMARIZE of MAX on service week? That is not using any inner measure
like, Sum the distinct day by week
Measure Draft = Sumx(SUMMARIZE('Table', 'Table'[SERVICE_WEEK], "Max Date", max('Table'[SERVICE_DATE]), "Count Days", DISTINCTCOUNT('Table'[SERVICE_DATE])), [Count Days])
@Anonymous, the ALLEXCEPT function removes the column SERVICE_WEEK, which makes it unavailable to SUMMARIZE. Try rewriting the SUMMARIZE portion like this:
ADDCOLUMNS (
SUMMARIZE ( 'Table', 'Table'[SERVICE_WEEK] ),
"Max Date", MAX ( 'Table'[SERVICE_DATE] ),
"Count Days", DISTINCTCOUNT ( 'Table'[SERVICE_DATE] )
)
Proud to be a Super User!