I am designing a PowerBI report using DirectQuery on a database. In the database I have tables for persons and scores. Every person has one or more scores. The total of the scores is always between 1 and 7. Example:
Persons
-------
Anna
Jane
John
Luis
Persons Score
-----------------
Anna 1
Anna 2
Jane 1
Jane 2
Luis 1
Luis 2
Luis 4
I would like to see something like:
Score Count
------------
7 1
3 2
Meaning, there is one person with 7 points and 2 people with 3 points.
How do I do that in PowerBI/DAX?