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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Below is a sample table:
| ID | Attribute | Name |
| 1 | A | Alex |
| 1 | B | Alex |
| 1 | C | Alex |
| 2 | B | John |
| 2 | C | John |
| 2 | D | John |
| 3 | A | Debra |
| 3 | B | Debra |
| 3 | C | Debra |
| 4 | B | Lana |
| 4 | C | Lana |
| 4 | D | Lana |
I want to create a table (using calculatetable or similar) which returns all the ID's for which the Attribute value 'A' doesn't occur. Hence for the sample above, the result would be a table produced which looks like this:
| ID | Name |
| 2 | John |
| 4 | Lana |
Appreciate the help.
Thanks,
Ali
Solved! Go to Solution.
@aloosh89 try this:
New Table =
VAR __ExcludeTable = CALCULATETABLE ( VALUES ( MyTable1[ID] ), MyTable1[Attribute] = "A" )
VAR __RestTable = EXCEPT ( VALUES ( MyTable1[ID] ), __ExcludeTable )
RETURN
SUMMARIZE (
NATURALINNERJOIN ( MyTable1, __RestTable ),
[ID],
[Name]
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@ThxAlot actually with a larger table, your DAX expression is taking longer, not sure why.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@ThxAlot Good option but I reviewed the performance, not much of a difference. 🤷♀️
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Simple enough,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
@ThxAlot I am trying to implement this. If I have an additional column in the table, let's call it 'Attribute 2' which I want to use filter some of the rows, where in the expression would I add that additional filtering? I have an example below, let's say I want to do exactly as requested in the original post, but also filter out rows by 'Attribute2 = x' only independant of what attribute1 is. So in this example the only row returned would be one row for John.
| ID | Attribute | Name | Attribute2 |
| 1 | A | Alex | x |
| 1 | B | Alex | x |
| 1 | C | Alex | x |
| 2 | B | John | x |
| 2 | C | John | x |
| 2 | D | John | x |
| 3 | A | Debra | x |
| 3 | B | Debra | x |
| 3 | C | Debra | x |
| 4 | B | Lana | y |
| 4 | C | Lana | y |
| 4 | D | Lana | y |
@aloosh89 try this:
New Table =
VAR __ExcludeTable = CALCULATETABLE ( VALUES ( MyTable1[ID] ), MyTable1[Attribute] = "A" )
VAR __RestTable = EXCEPT ( VALUES ( MyTable1[ID] ), __ExcludeTable )
RETURN
SUMMARIZE (
NATURALINNERJOIN ( MyTable1, __RestTable ),
[ID],
[Name]
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k this solution works perfectly, thanks so much and sorry for the delayed response.
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!