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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.