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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
det55
Regular Visitor

Compare two sets of data

Hi;

  I'm fairly new to Power BI, so in addition to solving my exact question I wouldn't mind being pointed to examples of similar problems.

 

What I would like to do is be able to compare select attributes from two different selections next to each other, and then further show the difference.  For example, if I have a data set that was similar to so many of the examples that I have seem (they all seem to use sales data over time) I would like to be able to select from two different sets of filters to compare Units/Revenue/Profit/etc. from one Time Period/Sales Person/Category to another. See rough example of the type of output I'd like below. Each column would be controlled by a set of three slicers.  Thanks in advance for your help!

 

                      January/Joe/Jeans                September/Sam/Shirts            Difference 

Units                          20                                          30                                  +10

Revenue                     40                                          30                                  -10

Profit                          12                                          12                                  +0

 

 

After I get there, I'd like to be able to put together a waterfall chart that would use calculated metrics to walk from Profit to Profit in buckets such as Volume, Revenue/unit, Profit/Revenue, etc.  

 

 

1 ACCEPTED SOLUTION
det55
Regular Visitor

I created my own solution of creating a "reference" table that is identical to the first.  I can then build filters on either table and create measures to compare them.

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

In the same visual, I do not think you can have multiple slicers work on different columns i.e. the Month for one column should be September and for another it should be October in the same visual.  You will have to create 3 seperate visuals i believe.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Super User
Super User

Sample output is great, but sample input data as well would be even better. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

 

This is a sample of input data.  I highlight the data the slicers for my output example pull from.

 

 MonthUnitsRevenueProfitProductRegion
JoeJan10206JeansNorth
JoeJan10206JeansSouth
JoeJan12248ShirtsNorth
JoeJan12248ShirtsSouth
JoeSep12248JeansNorth
JoeSep12248JeansSouth
JoeSep12248ShirtsNorth
JoeSep12248ShirtsSouth
SamJan10206JeansNorth
SamJan10206JeansSouth
SamJan12248ShirtsNorth
SamJan12248ShirtsSouth
SamSep15156ShirtsNorth
SamSep15156ShirtsSouth
SamSep12248JeansNorth
SamSep12248JeansSouth
det55
Regular Visitor

Hi;

  I'm fairly new to Power BI, so in addition to solving my exact question I wouldn't mind being pointed to examples of similar problems.

 

What I would like to do is be able to compare select attributes from two different selections next to each other, and then further show the difference.  For example, if I have a data set that was similar to so many of the examples that I have seem (they all seem to use sales data over time) I would like to be able to select from two different sets of filters to compare Units/Revenue/Profit/etc. from one Time Period/Sales Person/Category to another. See rough example of the type of output I'd like below. Each column would be controlled by a set of three slicers.  Thanks in advance for your help!

 

                      January/Joe/Jeans                September/Sam/Shirts            Difference 

Units                          20                                          30                                  +10

Revenue                     40                                          30                                  -10

Profit                          12                                          12                                  +0

 

 

After I get there, I'd like to be able to put together a waterfall chart that would use calculated metrics to walk from Profit to Profit in buckets such as Volume, Revenue/unit, Profit/Revenue, etc.  

 

 

det55
Regular Visitor

I created my own solution of creating a "reference" table that is identical to the first.  I can then build filters on either table and create measures to compare them.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.