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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
shafeeqva
New Member

Please help me on achiving below scenario

 

Please help me on achiving below scenario

 

shafeeqva_0-1723641569385.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi newellaa ,Thanks for the quick reply, you are in the right direction.

Hi @shafeeqva ,

The Table data is shown below:

vzhouwenmsft_0-1723707792720.png

vzhouwenmsft_1-1723707809195.png

Please follow these steps:

1.Create relationships between tables

vzhouwenmsft_2-1723707880594.png

2.Use the following DAX expression to create a column

Column = RELATED(City[City])

RELATED function (DAX) - DAX | Microsoft Learn

3.Final output

vzhouwenmsft_3-1723707947136.png

 

Best Regards,
Wenbin Zhou

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi newellaa ,Thanks for the quick reply, you are in the right direction.

Hi @shafeeqva ,

The Table data is shown below:

vzhouwenmsft_0-1723707792720.png

vzhouwenmsft_1-1723707809195.png

Please follow these steps:

1.Create relationships between tables

vzhouwenmsft_2-1723707880594.png

2.Use the following DAX expression to create a column

Column = RELATED(City[City])

RELATED function (DAX) - DAX | Microsoft Learn

3.Final output

vzhouwenmsft_3-1723707947136.png

 

Best Regards,
Wenbin Zhou

newellaa
Frequent Visitor

From the model view in Power BI desktop you could create a join between the city and country tables on city.

newellaa_0-1723649123332.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.