Forum Discussion
michael_knight
6 years agoPost 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 )))))
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
Try this:
Score Card = ([OS] * 2) + ([DP] * 3) + ([C] * -1) + ([DS] * -2) + 'Appointment - Measures'[Appointments]
2 Replies
- tex628Community Champion
Try this:
Score Card = ([OS] * 2) + ([DP] * 3) + ([C] * -1) + ([DS] * -2) + 'Appointment - Measures'[Appointments]- michael_knightPost Prodigy
Perfect, thank you very much tex628