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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ruthpozuelo
Kudo Kingpin
Kudo Kingpin

Compare two sets of data from the same source

Hi,

An example, lets say I want to compare two sets of data from the same source, for example a bill of materials for a bike.

 

This data source changes when users update the data, but there are no flags such as date modified that can be imported for comparision.

For example week 1 the bill of materials look like this:

 

bom1.png

and week 2 when refreshed, the number of screws changed from 30 to 18:

BOM2.png

I am using Chris Webb solution here: https://blog.crossjoin.co.uk/2014/01/27/comparing-columns-in-power-query/ to identify what changed between the tables by importing the data two times and reference the first table in the second to compare both,

 

My issue is that when I refresh the second table, the first table will refresh too! 😞

 

Is there a way to stop a table from refreshing with M, disable refresh on the first table or a better way to do this perhaps?

 

Thanks,

/Ruth

1 ACCEPTED SOLUTION
asocorro
Skilled Sharer
Skilled Sharer

Here it is:

 

p.png

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

View solution in original post

5 REPLIES 5
asocorro
Skilled Sharer
Skilled Sharer

Here it is:

 

p.png

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

Now, this is quite odd,

 

I stopped refresh on the first query and included it in the second query to compare both tables, the refreshed and unrefreshed one.

Query 1: unrefreshed

Query 2: refreshed

 

My surprise was that when I refresh the Query 2 (that includes Query 1), Query 1 is also refreshed inside query 2, But Query 1 remains unrefreshed..Perhaps useful in other cases but not for this case. 

 

Any ideas on how to disable refresh with M?

 

/Ruth

How about doing the comparison in DAX?  One way would be to add a calculated column in the new table to do a lookup of the corresponding value in the original table and then compare them.

 

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro

Sorry for my Uber Late reply!

 

I was hoping to build a more automated solution, something like:

Click on refresh button, all queries are refreshed except for that table and then refresh that manually...sort of...

I already have a lookup in place, but it is not optimal...

 

Thanks for the support anyhow 🙂

Of course, thanks!

/Ruth

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors