The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I want to discard all Table1 rows that contains no "FamilyName, FirstName" matching with Table2. As long as at least one of the author names is available in Table2, the row should be kept. I guess the soultion should include "data structuring" and creating relationship between the tables but I couldn't find out how to do yet.
Could you please advise?
Solved! Go to Solution.
Hi @bekirsalgin ,
Add below measure to visual level filter and set its value to be greater than 0.
Measure1 = VAR tempTable = ADDCOLUMNS ( CROSSJOIN ( SELECTCOLUMNS ( Table1, "Author", Table1[Author] ), SELECTCOLUMNS ( Table2, "FamilyName,FirstName", Table2[FamilyName] & "," & Table2[FirstName] ) ), "check", IFERROR ( FIND ( [FamilyName,FirstName], [Author] ), 0 ) ) RETURN SUMX ( tempTable, [check] )
Best regards,
Yuliana Gu
Hi @bekirsalgin ,
Add below measure to visual level filter and set its value to be greater than 0.
Measure1 = VAR tempTable = ADDCOLUMNS ( CROSSJOIN ( SELECTCOLUMNS ( Table1, "Author", Table1[Author] ), SELECTCOLUMNS ( Table2, "FamilyName,FirstName", Table2[FamilyName] & "," & Table2[FirstName] ) ), "check", IFERROR ( FIND ( [FamilyName,FirstName], [Author] ), 0 ) ) RETURN SUMX ( tempTable, [check] )
Best regards,
Yuliana Gu
User | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
62 | |
53 | |
51 |