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
michael_knight
Post Prodigy
Post Prodigy

Scorecard/League Table Help

Hi,

 

I'm wanting to create a league table/scorecard and I'm having problems with the DAX. I've gone for a IF statement but I'm not sure it will work because it won't be an accumulation of all the figures. 

 

Score Card = 
IF([OS], [OS] +2,
IF([DP], [DP] +3,
IF([C], [C] -1,
IF([DS], [DS] -2,
IF('Appointment - Measures'[Appointments], 'Appointment - Measures'[Appointments] + 1 )))))

 

 wfwaef.PNG

This is what the scorecard current looks like, the OS, DP, C DS and Appointment figures are all accurate. 

 

The scoring is fairly simple. 

If you get 1 OS, then + 2 to the score

If you get 1 DP, then + 3 to the score

If you get 1 C, then - 1 to the score

If you get 1 DS, then - 2 to the score

If you get 1 Appointment, then + 1 to the score

 

So for example, the top row should have a score of 20 rather than 7 

 

Any suggestions welcome

 

Thanks,

Mike

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Try this:

Score Card = 
([OS] * 2) +
([DP] * 3) +
([C] * -1) +
([DS] * -2) +
'Appointment - Measures'[Appointments]

Connect on LinkedIn

View solution in original post

2 REPLIES 2
tex628
Community Champion
Community Champion

Try this:

Score Card = 
([OS] * 2) +
([DP] * 3) +
([C] * -1) +
([DS] * -2) +
'Appointment - Measures'[Appointments]

Connect on LinkedIn

Perfect, thank you very much @tex628 

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.