Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I am new to Power BI and I am trying to create a dashboard to check for data gaps across different IT systems.
I have 2 tables with around 40 columns each. I need to find out if the value in Table1 is exactly the same as value in Table 2, If not then the rows with unmatching values should be stored in another table.
For Eg: Table 1 ( Employee ID , Firstname, Lastname, country)
Table 2 ( Employee ID, Firstname, Lastname, country )
Table to Calculate: ( Only Rows that do not match)
CountryMismatch( Employee ID, Firstname, Lastname, Table1.Country, Table2.Country)
Table 1 and Table 2 relationship exists on EmployeeID which is a unique value.
The idea is to build the dashboard capturing the count of mismatching values but also to have data of mismatching values for Audit purposes. I was able to implement above on SQL and Mysql but would like to learn doing it in PowerBI.
Solved! Go to Solution.
Hi @Abhilekh,
Please check out the demo in the attachment. The formula could be as follows.
Table =
SELECTCOLUMNS (
FILTER (
NATURALINNERJOIN ( 'Table1', 'Table2' ),
'Table1'[Country] <> 'Table2'[Country]
),
"EmployeeID", 'Table1'[Employee ID],
"Firstname", 'Table1'[Firstname],
"Lastname", 'Table1'[Lastname],
"Table1 Country", 'Table1'[Country],
"Table2 Country", 'Table2'[Country]
)
Best Regards,
Dale
Hi @Abhilekh,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @Abhilekh,
Please check out the demo in the attachment. The formula could be as follows.
Table =
SELECTCOLUMNS (
FILTER (
NATURALINNERJOIN ( 'Table1', 'Table2' ),
'Table1'[Country] <> 'Table2'[Country]
),
"EmployeeID", 'Table1'[Employee ID],
"Firstname", 'Table1'[Firstname],
"Lastname", 'Table1'[Lastname],
"Table1 Country", 'Table1'[Country],
"Table2 Country", 'Table2'[Country]
)
Best Regards,
Dale
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 38 | |
| 35 | |
| 23 |