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
jamieham
Helper II
Helper II

Column Query

I want to create a new column based on a column query that uses Team  and Home & Away teams to determine if the Team is Home or Away

 

TeamHome TeamAway TeamHome or Away
AustraliaFranceAustralia 
FranceFranceAustralia 
1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

Create a new column in DAX by using

NewColumn = IF (Table[Team]=Table[Home Team],"Home","Away")

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@jamieham , not ver clear . Create a new column

if ([team]=[Home Team] ,"Home", "Away")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
FarhanAhmed
Community Champion
Community Champion

Create a new column in DAX by using

NewColumn = IF (Table[Team]=Table[Home Team],"Home","Away")

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Greg_Deckler
Community Champion
Community Champion

@jamieham - I'm thinking:

Home or Away =
  IF([Team] = [Home Team],"Home","Away")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors