Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
@harrame , 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])
@harrame, 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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |