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
Burubear
Helper I
Helper I

Team comparison using slicers both with same data charts

Hello to all

 

Hoepfully I'm asking in the right category. Just want to ask for a simple way wherein I  compare different teams using the same data set with a slicer. 

 

I have these sample set data. I want to compare the average of all Productivity, core, and total % by using two different slicers for the team. but can also navigate the date by Year and month

TEAMDateProductivity%Core %Total %
Team A4/1/202089.00%98.55%93.20%
Team A4/2/202090.00%90.20%96.50%
Team A4/3/202092.30%99.30%94.40%
Team A4/4/2020100.00%98.00%98.30%
Team A4/5/202095.40%99.00%99.20%
Team A4/6/202090.55%98.70%100.00%
Team B4/1/202093.20%89.00%98.55%
Team B4/2/202096.50%90.00%90.20%
Team B4/3/202094.40%92.30%99.30%
Team B4/4/202098.30%100.00%98.00%
Team B4/5/202099.20%95.40%99.00%
Team B4/6/2020100.00%90.55%98.70%

 

Currently I have a working data charts for one team only (or the combinations of different teams using the multiple options) that looks like this

SLICERS:

 

Slicers.PNG

 

Data graphs

Charts.PNG

 

but in another page, i want an interactive team comparison (team A data vs Team B data) that would look like this. Year, Month and quarter can be for both data. but I want to limit each side of data to each respective teams chosen in the Team Slicer (Team A vs Team B)

all.PNG

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Burubear 

 

I had a very similar requirement to this in order to compare whole life costs between two vehicles from a single list.

I solved it by selecting each slicer then using View > Edit Interactions. This allowed me to select which side of the comparison each slicer filtered.

My output (not my prettiest work!):

 

compar_example.PNG

 

All the slicers on the left only filter visuals on the left and vice versa.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

3 REPLIES 3
BA_Pete
Super User
Super User

Hi @Burubear 

 

I had a very similar requirement to this in order to compare whole life costs between two vehicles from a single list.

I solved it by selecting each slicer then using View > Edit Interactions. This allowed me to select which side of the comparison each slicer filtered.

My output (not my prettiest work!):

 

compar_example.PNG

 

All the slicers on the left only filter visuals on the left and vice versa.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thank you!

 

This really helps out a lot. Encoutered this solution with other post but most of the just refers to one slicer to 2 charts or 2 slicers to one chart. Was confused that if I click on "none" for the graph that it wont filter anymore but it's all clear now. Thanks a lot

amitchandak
Super User
Super User

There two way. You select 2 teams in the slicer and in one formula you choose min team and another one you choose the second team

Team 1 =
var _min = minx(Team,Team[Team])
return
calculate([Measure], Team[Team]=_min)


Team 2 =
var _max = minx(Team,Team[Team])
return
calculate([Measure], Team[Team]=_max)

 

 

Another method is having to slicer, there you have use userelation and cross filter to make it work.

This is done for dates. you need to do for teams

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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.