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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kenmare
Frequent Visitor

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 :

Kenmare_0-1697451326745.png

 

 

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 !

1 ACCEPTED SOLUTION
5 REPLIES 5
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)

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

Hi @Anonymous 

 

Thank you for your answer. I'll try to explain no problem.

I put my example in the attached power pi file: https://1drv.ms/u/s!AoMg4cU4jocGpm2dOeYuSNkgKKw0?e=3iTrKT 

Here is a screenshot of the resultats expected : for a selected team, having the count of each strategy used :

Kenmare_0-1697702078775.png

Best regards.

Kenmare

Anonymous
Not applicable

Hi @Kenmare ,

Could you please provide the calculate logic? 

vbinbinyumsft_0-1697709215581.png

vbinbinyumsft_1-1697709292627.png

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.