Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I get this message when using dax in Power BI. If I use ALL, then the formula is working correctly. The formula is not working when I use ALLEXCEPT. Could you please help? Thank you
Message
A single value for column 'MONTH' in table 'TS_OUTLOOK' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
DAX:
VALUEA = CALCULATE(SUM(TS_OUTLOOK[Value]),FILTER(ALLEXCEPT('TS_OUTLOOK',TS_OUTLOOK[YEAR],TS_OUTLOOK[MONTH]),TS_OUTLOOK[MONTH]=6 && TS_OUTLOOK[YEAR]=2024))
Solved! Go to Solution.
There is an issue in your measure.
ALLEXCEPT is a table function and its syntax should be
ALLEXCEPT ( <TableName>, <ColumnName> [, <ColumnName> [, … ] ] )
the resultant table will contain all columns except the list of columns that you added. For example in your case,
VALUEA = CALCULATE(SUM(TS_OUTLOOK[Value]),FILTER(ALLEXCEPT('TS_OUTLOOK',TS_OUTLOOK[YEAR],TS_OUTLOOK[MONTH]),TS_OUTLOOK[MONTH]=6 && TS_OUTLOOK[YEAR]=2024))
the result of ALLEXCEPT, contains all columns in TS_OUTLOOK except MONTH and YEAR columns, since the resultant does not contain those columns but you added additoinal filters to them (TS_OUTLOOK[MONTH]=6 && TS_OUTLOOK[YEAR]=2024) because of which you got the error.
Please checkout this article to know more about ALLEXCEPT: https://dax.guide/allexcept/
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
There is an issue in your measure.
ALLEXCEPT is a table function and its syntax should be
ALLEXCEPT ( <TableName>, <ColumnName> [, <ColumnName> [, … ] ] )
the resultant table will contain all columns except the list of columns that you added. For example in your case,
VALUEA = CALCULATE(SUM(TS_OUTLOOK[Value]),FILTER(ALLEXCEPT('TS_OUTLOOK',TS_OUTLOOK[YEAR],TS_OUTLOOK[MONTH]),TS_OUTLOOK[MONTH]=6 && TS_OUTLOOK[YEAR]=2024))
the result of ALLEXCEPT, contains all columns in TS_OUTLOOK except MONTH and YEAR columns, since the resultant does not contain those columns but you added additoinal filters to them (TS_OUTLOOK[MONTH]=6 && TS_OUTLOOK[YEAR]=2024) because of which you got the error.
Please checkout this article to know more about ALLEXCEPT: https://dax.guide/allexcept/
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |