Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have two tables which are formed by extracting one similar column(STORY ID) from two different multicolumn tables. The two tables are like below:
Now, I want to calculate the difference between these two and find the ones in second table that are not present in first table.
I am trying using EXCEPT('ON END STORIES', 'ON START STORIES') but this is giving me no result and just showing as blank. Is there anything I am missing here?
Hi,
i think that you are in the right way
I made some tests and with your data you should get blank if you swap your tables.
on other cases you should get errors (column type ecc.)
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
@Anonymous , Try only for Id
EXCEPT(Distinct('ON END STORIES'[Story ID]) , Distinct('ON START STORIES''[Story ID]))
This will not compare other columns
Still no luck. Now if I try just on one column, I am getting all the ids from second table and not the difference between the two. It should calculate the difference between the two and return which are present in second and not the ones in first.
@Anonymous , In that case, second table to be first
EXCEPT(Distinct('ON START STORIES''[Story ID]),Distinct('ON END STORIES'[Story ID]) )
The result is still not coming right. I think the relationship mapping is getting ignored while finding the distinct items based upon id(may be other columns hold different values in different tables for same unique id on different dates).
Is it somehow possible to compare the two tables based upon unique id only while keeping other columns intact in the resultant differential table and select rest of the other columns from the second table? This way, I can find the differential ids and then their related columns from second table that follows the managed relationship(operation is: second-first, where both have multiple columns that change values except the ids).
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |