Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have 2 excel sources and data is as below. I want to check for each combination of App and Columns in Excel 1 matches with the combination in Excel 2 and come up with a table which show how many combinations are aligned.
In this e.g. App A1 has 3 columns and they match with the 3 columns in Excel 2. But for App A2, C4 has a match but C5 doesnt have one. So App A1 is aligned 100%, 3 out of 3 are matching and A2 should be 50% as 1 out 2 match.
Please suggest how this can be accomplished? Thanks.
Excel 1 | Excel 2 | ||||
App | Columns | App | Columns | ||
A1 | C1 | A1 | C1 | ||
A1 | C2 | A1 | C2 | ||
A1 | C3 | A1 | C3 | ||
A2 | C4 | A2 | C4 | ||
A2 | C5 | A2 | C6 |
App | % of Columns Aligned? |
A1 | 100 |
A2 | 50 |
Solved! Go to Solution.
@Anonymous , Try a measure like, But for this need to have a common table with column app, joined to both tables
a measure like
countrows(Table1, [app], [column]) - countrows( except(summarize(Table1,[app], [column]), summarize(Table2,[app], [column]) ))
Hi @amitchandak - the solution worked fine, now got slightly different requirement. There can be Apps with '_Test', but this wont be available in excel 2. In this case we have to compare A1_Test with A1 and show as 100%.
I tried to add a new column, trimmed '_Test' part and tried to check with entries in Excel 2. But it is not working as expected, it is considering A1_Test and A1 as A1. Need to display A1 and A1_Test as seperate entries in output. Any suggestions will be highly appreciated.
Thanks.
Excel 1 | Excel 2 | ||||
App | Columns | App | Columns | ||
A1 | C1 | A1 | C1 | ||
A1 | C2 | A1 | C2 | ||
A1 | C3 | A1 | C3 | ||
A2 | C4 | A2 | C4 | ||
A2 | C5 | A2 | C6 | ||
A1_Test | C1 | ||||
A1_Test | C2 | ||||
A1_Test | C3 |
Expected Output
App | % of Columns Aligned? |
A1 | 100 |
A2 | 50 |
A1_Test | 100 |
@Anonymous , Try a measure like, But for this need to have a common table with column app, joined to both tables
a measure like
countrows(Table1, [app], [column]) - countrows( except(summarize(Table1,[app], [column]), summarize(Table2,[app], [column]) ))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |