This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello All,
I am facing an issue in creating a custom table using DAX as mentioned below.
I have two tables with below format
I need a new table in the below format using DAX
Please help.
Thanks,
Sam
Solved! Go to Solution.
Hi @sam021083
I used the SEARCH function to help match.
Table =
SELECTCOLUMNS(
DISTINCT(
GENERATE(
FILTER(ALL('Table1'[Flag]),LEN('Table1'[Flag])>0) ,
FILTER(
'Table2',
SEARCH('Table2'[Exception],'Table1'[Flag],1,0)>0 && LEN(TRIM('Table2'[Exception]))>0)
)
)
,"Flag" , [Flag] , "Exception" , [Exception]) Hi @sam021083
I used the SEARCH function to help match.
Table =
SELECTCOLUMNS(
DISTINCT(
GENERATE(
FILTER(ALL('Table1'[Flag]),LEN('Table1'[Flag])>0) ,
FILTER(
'Table2',
SEARCH('Table2'[Exception],'Table1'[Flag],1,0)>0 && LEN(TRIM('Table2'[Exception]))>0)
)
)
,"Flag" , [Flag] , "Exception" , [Exception]) Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |