Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi
I have got some DAX where I join 2 tables in a union where some manual adjustments get added to data from a different source which makes up the majority of the data.
I need to filter out the main data so that if data (based on two fields) exists in the adjustments, I want to exclude those combinations appearing in the main data.
I have got the DAX working as I want it, but I was interested in finding out if I can replace the SUMMARIZE (below in RED) with SUMMARIZECOLUMNS.
It doesn't seem to work when I use SUMMARIZECOLUMNS, but I don't know why.
Many thanks
Oliver
zz Claims Return 2 =
SUMMARIZECOLUMNS (
'Claims Solvency 2 Return'[Claim Reference],
'Claims Solvency 2 Return'[UMR],
'Claims Solvency 2 Return'[Risk Code],
FILTER (
'Claims Solvency 2 Return',
NOT (
( 'Claims Solvency 2 Return'[UMR] , 'Claims Solvency 2 Return'[Claim Reference] )
IN SUMMARIZE (
'S2 Manual (Claims)',
'S2 Manual (Claims)'[UMR] , 'S2 Manual (Claims)'[Claim Reference]
)
)
)
)
Solved! Go to Solution.
Hi @OliverO ,
According to your description, I created this data and copied your operation, and got the following error:
Claims Solvency 2 Return:
S2 Manual (Claims):
Use SUMMARIZE to get results:
This error occurs when using SUMMARIZECOLUMNS:
This is because you cannot apply an external filter context (such as CALCULATE or CALCULATETABLE) to SUMMARIZECOLUMNS, so you cannot use it in metric expressions, making it useless in most measures.
This is the content of the related link, I hope it helps you
https://www.sqlbi.com/articles/introducing-summarizecolumns/
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @OliverO ,
According to your description, I created this data and copied your operation, and got the following error:
Claims Solvency 2 Return:
S2 Manual (Claims):
Use SUMMARIZE to get results:
This error occurs when using SUMMARIZECOLUMNS:
This is because you cannot apply an external filter context (such as CALCULATE or CALCULATETABLE) to SUMMARIZECOLUMNS, so you cannot use it in metric expressions, making it useless in most measures.
This is the content of the related link, I hope it helps you
https://www.sqlbi.com/articles/introducing-summarizecolumns/
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Liu Yang!
Hi @OliverO ,
Check this article by SQLBI with the difference between both functions.
https://www.sqlbi.com/articles/introducing-summarizecolumns/
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks Miguel!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 38 | |
| 29 | |
| 24 |