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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jamieham
Helper II
Helper II

DAX Query

I have a table with the fields listed below and I want to create a column that shows the Points Scored (in Red) by a Team. A fixture will have a Home Team and Away Team and both have a score associated with them that determines the Points Scored, how do I do this so when select a Team it knows how many points is scored?

 

Screen Shot 2020-09-20 at 3.48.22 PM.png

1 ACCEPTED SOLUTION
VijayP
Community Champion
Community Champion

@jamieham 
=IF(Team=AwayTeam,Away Team score,homeTeamScore)

 

Hope this will help you. if this is the solution then please mark this as solution and share your Kudoes

Vijay Perepa




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

2 REPLIES 2
VijayP
Community Champion
Community Champion

@jamieham 
=IF(Team=AwayTeam,Away Team score,homeTeamScore)

 

Hope this will help you. if this is the solution then please mark this as solution and share your Kudoes

Vijay Perepa




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Community Champion
Community Champion

@jamieham 

Thanks! Please Share your Valuable Kudoes as well. Just a click on Thumps up icon near my Post ! Thanks again!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors