Forum Discussion

Kenmare's avatar
Kenmare
Frequent Visitor
2 years ago
Solved

Count values which can be on two different columns

Hi there !

I'm creating a dashboard to study each strategy for a football team with these tables :

 

 

In my report: a slicer to select a team.
I want to display, for each strategy, how many times it has been used by a team.
Example for team 1:
4-4-2 --> 3
4-3-3 --> 3
3-5-2 --> 2

I created a table chart with Strategy Name and a measure with a countx for each Team_1_strategy_id or Team_2_strategy_id (because a team can be home or visitor) but it doesn't work.
Do you know if it's possible in PowerBI or I'm wasting my time ?

Thank you !

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Kenmare ,

    I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

    Thanks for your efforts & time in advance.

     

    Best regards,
    Community Support Team_Binbin Yu

  • Kenmare's avatar
    Kenmare
    Frequent Visitor

    Thank you Ahmedx this is what I was searching for this visual.

    Anonymous the logic was to calculate the number of occurrences of each strategy: if the team plays at home (in team_1_id) + away (in team_2_id)