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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.