Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Dev-001
Regular Visitor

Comparing two tables and want to display tha updated values and column

Hello everyone,

 

I have two power bi report (201 and 202)within me with column names shipment no, sending agent, transport mode etc. 202 is the updated version of 201. I just wanted to compare two tables and wanted to know the updated values, new and same values and needed to display it. 

 

Does anyone have worked on such scenario?

 

Thanks,

2 ACCEPTED SOLUTIONS
some_bih
Super User
Super User

Hi @Dev-001 if tables are same structure, one option would be to use Power Query type append, check link for example. 

After that create simple measure for your slicing and filtering what you want to analyse for difference in version.

If you need name of file to better understand versioning so you need it, you can use link for adding file name.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

Anonymous
Not applicable

Hi @Dev-001 ,

 

Is [shipment no] unique? I'm assuming the data looks like this:

vcgaomsft_0-1727406886319.png

Please create 3 new measures:

 

same values = 
VAR __same_records = SELECTCOLUMNS(INTERSECT('201','202'),"shipment_no",'201'[shipment no])
VAR __cur_shipment_no = SELECTEDVALUE('201'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __same_records ,1)
RETURN
__filter
updated values = 
VAR __updated_records = SELECTCOLUMNS(EXCEPT('201','202'),"shipment_no",'201'[shipment no])
VAR __cur_shipment_no = SELECTEDVALUE('201'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __updated_records ,1)
RETURN
    __filter
new values = 
VAR __new_records = EXCEPT(DISTINCT('202'[shipment no]), DISTINCT('201'[shipment no]))
VAR __cur_shipment_no = SELECTEDVALUE('202'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __new_records ,1)
RETURN
__filter

 

And apply it ti the visual's filter:

vcgaomsft_1-1727416233222.png

Output:

vcgaomsft_0-1727416121806.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Dev-001 ,

 

Is [shipment no] unique? I'm assuming the data looks like this:

vcgaomsft_0-1727406886319.png

Please create 3 new measures:

 

same values = 
VAR __same_records = SELECTCOLUMNS(INTERSECT('201','202'),"shipment_no",'201'[shipment no])
VAR __cur_shipment_no = SELECTEDVALUE('201'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __same_records ,1)
RETURN
__filter
updated values = 
VAR __updated_records = SELECTCOLUMNS(EXCEPT('201','202'),"shipment_no",'201'[shipment no])
VAR __cur_shipment_no = SELECTEDVALUE('201'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __updated_records ,1)
RETURN
    __filter
new values = 
VAR __new_records = EXCEPT(DISTINCT('202'[shipment no]), DISTINCT('201'[shipment no]))
VAR __cur_shipment_no = SELECTEDVALUE('202'[shipment no])
VAR __filter = IF(__cur_shipment_no IN __new_records ,1)
RETURN
__filter

 

And apply it ti the visual's filter:

vcgaomsft_1-1727416233222.png

Output:

vcgaomsft_0-1727416121806.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum 

some_bih
Super User
Super User

Hi @Dev-001 if tables are same structure, one option would be to use Power Query type append, check link for example. 

After that create simple measure for your slicing and filtering what you want to analyse for difference in version.

If you need name of file to better understand versioning so you need it, you can use link for adding file name.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.