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
jvirgi
Helper III
Helper III

Comparing Values and scorecards based on a lookup table

I have 2 tables of data (see below example), 1 with a listing of a bunch of reviews on sports with a star rating.  I have another table thats a reference that says what sport i should benchmark it against.  In other words, what i want to compare that selected sport to.  

 

I would also have a slicer that allows me to choose a sport of choice.  I would prefer to use the reference table as my slicer.

 

Question 1: How do I make a chart of average Star Rating that ONLY shows the chosen sport and its Benchmark? It would look something like this:

sportcompare.png

Question 2: How do I make a scorecard showing each sport compared to its Benchmark? For example, below and red or green is calculating by comparing star rating vs the benchmark's star rating. It would look something like this:  

sportcompare2.png

 

SportRating
Hockey3
Hockey4
Hockey4
Football5
Golf2
Golf1
Soccer5
Soccer5
Soccer5

 

Main SportBenchmark
HockeyFootball
GolfSoccer
SoccerGolf
FootballHockey
1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

Hope this can help:

39.PNG

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto

View solution in original post

4 REPLIES 4
v-gizhi-msft
Community Support
Community Support

Hi,

 

Hope this can help:

39.PNG

Here is my test pbix file:

pbix 

 

Best Regards,

Giotto

@v-gizhi-msft Thanks!!  This works well and what I was looking for.

 

Is there a way to show the red / green chart to just be indiviual card visuals or single colored boxes for each sport? I know i could create a bunch of slicers only linked to each visual but that seems very messy.  I was thinking can i make a card that just links to the first sport, another for the 2nd, and so on.

 

 

Greg_Deckler
Super User
Super User

Perhasp if you did this:

 

Table1 * <- 1 Table2 (get rid of your benchmark column) 1 <-> * Table3

 

So your Table1 and Table3 as presented below minus the Benchmark column in Table2

 

Create a third table:

 

Sport,Benchmark

Football,Football

Hockey,Football

Football,Hockey

Hockey,Hockey

...

 

Use Benchmark for your slicer. Use Table2 sport or Table3 Sport for you axis.

 

Might work.


@ 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...

Thanks @Greg_Deckler.

I will try it but I’m guessing when I slice by benchmark I’ll only get the 1 sport, rather than both the benchmark and main sport.

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.