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
Ttheodosiou
Regular Visitor

Compare two tables by slider

Hello,

 

I am new to power bi and I would like your support on how to achive the below:

 

I have a couple of .csv files in a folder and i was thinking to import the folder and expand the tables.

 

Source.nameColumnAColumnB
file_a.csvA1
file_a.csvB2
file_a.csvC3

file_b.csv

A1

file_b.csv

A2
file_c.csvD1
file_c.csvA1

 

 

Question 1: 

I would like to give the option to the end user to select two tables (maybe from a slider) and compare the two tables. How is this possible

 

Question 2:

Compare the two tables with  and get the below results. 

 

if file_a and file_b

ColumnAColumnbResult
A1Missing
B2Missing
A2New

 

 

if file_a and file_c

 

ColumnAColumnbResult
A1Exist
B2Missing
C3Missing
D1New
A2New
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ttheodosiou ,

 

Question1:

You could use slicers and measures.

slicer1 = DISTINCT('Table'[Source.name])
slicer2 = DISTINCT('Table'[Source.name])
Measure1 = IF(SELECTEDVALUE('Table'[Source.name]) = SELECTEDVALUE(slicer1[Source.name]),1,0)
Measure2 = IF(SELECTEDVALUE('Table'[Source.name]) = SELECTEDVALUE(slicer2[Source.name]),1,0)

vjaywmsft_0-1666690790072.png

Question2:

You can not use slicer to control which column to show in the visual.

 

Best Regards,

Jay

 

View solution in original post

4 REPLIES 4
Ttheodosiou
Regular Visitor

As far as the question 2:

 

Is it possible to get the value of slicer into a parameter and then generate a new table with removematchingrows? 

Anonymous
Not applicable

Hi @Ttheodosiou ,

 

I'm affraid that's not possible. You can not create a table based on slicer values. Even if you can, the table won't change after you select another value in slicer.

Maybe you could consider to use bookmark, but then you will need to bookmark all possible outcomes in advance.

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

 

Best Regards,

Jay

Ttheodosiou
Regular Visitor

as far as question 1, I have used interactions instead.

 

Ttheodosiou_0-1666815804557.png

 

Anonymous
Not applicable

Hi @Ttheodosiou ,

 

Question1:

You could use slicers and measures.

slicer1 = DISTINCT('Table'[Source.name])
slicer2 = DISTINCT('Table'[Source.name])
Measure1 = IF(SELECTEDVALUE('Table'[Source.name]) = SELECTEDVALUE(slicer1[Source.name]),1,0)
Measure2 = IF(SELECTEDVALUE('Table'[Source.name]) = SELECTEDVALUE(slicer2[Source.name]),1,0)

vjaywmsft_0-1666690790072.png

Question2:

You can not use slicer to control which column to show in the visual.

 

Best Regards,

Jay

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors