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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.