Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
For eg.I have below SQL query which needs to be run 2 times . First time in a test environment and the second time in the Production environment with different credentials.
Select name,location from EMP where empid in(101,102)
After running the query in Test and Prod Oracle environment.
1.I want to compare the query result from both environments. How many records match/mismatch
2.Empid in Where condition of SQL query should be parametrized. means empid in where conditions should not be hardcoded.At run time I can put any empid.
Is there a way in Power bi by which I can setup/save this configuration and just by one click I can run this?
@Anonymous
Solved! Go to Solution.
Not exactly sure what you mean "run this by just one click"
However...
If you import both sets of data, you can compare them using measures:
Common records = COUNTROWS(INTERSECT(Table 1, Table 2))
differing records table 1 = COUNTROWS(EXCEPT(Table 1, Table 2))
differing records table 2 = COUNTROWS(EXCEPT(Table 2, Table 1))
Proud to be a Super User!
Paul on Linkedin.
Thank You
Not exactly sure what you mean "run this by just one click"
However...
If you import both sets of data, you can compare them using measures:
Common records = COUNTROWS(INTERSECT(Table 1, Table 2))
differing records table 1 = COUNTROWS(EXCEPT(Table 1, Table 2))
differing records table 2 = COUNTROWS(EXCEPT(Table 2, Table 1))
Proud to be a Super User!
Paul on Linkedin.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
71 | |
37 | |
30 | |
28 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
36 |