cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Kusaadigarla01
Frequent Visitor

How to create Sales difference between two products by Products selection in two slicers

Hi All,

My requirement is to show the sales difference of any two products by selecting products from two slicers (On single column).

 

I have data like below,

Product NameSales
Product12000
Product21500
Product31400
Product41450
Product51700
Product61800
Product72100
Product81750

 

I need to show two different slicers on same product name column like below.

 

Kusaadigarla01_0-1685632750357.png

Need to show Difference of two products which are selected in above slicers:

Kusaadigarla01_1-1685632931866.png

Thanks in advance.

 

Best regards,

Kusa

 

1 REPLY 1
barritown
Super User
Super User

Hi @Kusaadigarla01,

I doubt there is a solution consisting of just one table and two slicers linked with the Product column. If I am wrong and someone proposes such a solution - I will be happy to watch and learn.

I think you will need an additional table. It could be either a full copy of your main table (one slicer should refer to Table1[Product], the other one to Table2[Product]) or a stand-alone table with all the values from the Product column.

In the first case your measure may look like:

Difference = MIN ( Table1[Sales] ) - MIN ( Table2[Sales] )

The second option will be a little bit more complicated - let me know if the first one doesn't fit your need for some reason.

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors