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
Anonymous
Not applicable

Comparing two data sources

I am using two data sources in one report, one is an excel file and the other is a sharepoint list. Both data sources are very similar to each other and what I want to do is compare the two data sources using a slicer. Basically I want to be able to choose between showing the common records and different records of the two data sources in my visuals. How do I achieve this?

 

Any help would be grealy appreciated!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, I did the test: tableA and tableB are from two data sources, which include the same records as well as different records in both tables. Need to create a separate calculated table as slicer to combine the records from both tables on one column. Create the following two measures to determine if the values filtered by the slicer exist in the table. Refer to the following:

slicer = UNION(DISTINCT(TA_record[TableA_record]),DISTINCT(TB_record[TableB_record]))
M1 =
var sel = SELECTEDVALUE(slicer[slicer_record])
return
IF(MAX(TA_record[TableA_record])=sel,1,0)

vstephenmsft_0-1638850391541.pngvstephenmsft_1-1638850397198.pngvstephenmsft_2-1638850401642.png

If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Stephen


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, I did the test: tableA and tableB are from two data sources, which include the same records as well as different records in both tables. Need to create a separate calculated table as slicer to combine the records from both tables on one column. Create the following two measures to determine if the values filtered by the slicer exist in the table. Refer to the following:

slicer = UNION(DISTINCT(TA_record[TableA_record]),DISTINCT(TB_record[TableB_record]))
M1 =
var sel = SELECTEDVALUE(slicer[slicer_record])
return
IF(MAX(TA_record[TableA_record])=sel,1,0)

vstephenmsft_0-1638850391541.pngvstephenmsft_1-1638850397198.pngvstephenmsft_2-1638850401642.png

If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Stephen


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bcdobbs
Community Champion
Community Champion

Is there a common identifier on both eg an Id or something that identifies rows uniquely?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

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.