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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.