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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
stribor45
Post Prodigy
Post Prodigy

Brining in another columns from related table

I am trying to bring the Store Name column from the Store table but keep receiving errors that it is not in the current context. I tried to bring this column by using the RELATED function. Can someone assist, please? 

 

Dax Do link

5 REPLIES 5
stribor45
Post Prodigy
Post Prodigy

What I am trying to do is display a few columns from Sales table that will include "storekey" and I also want to pull store name as well well from Store table

in that case you can use the Summarize function  🙂
ex.
SUMMARIZE ( Sales, Sales[Column 1],Sales[Column 2], Stores[Store Name])

 

stribor45
Post Prodigy
Post Prodigy

I thought it did. I changed the drop down to DAX guide but I thought it was the same model

 

stribor45_0-1701085119363.png

 

Not sure what you're trying to test, but in order to bring a RELATED column, you need to iterate the table that is on the many side 🙂 

for example you can do :

ADDCOLUMNS ( Sales, "@MyStoreName", RELATED(Store[Store Name])

 

 

erickeu
Advocate I
Advocate I

Hi @stribor45 the datamodel that you posted here doesn't have the Dim Store 🙂

erickeu_0-1701076698967.png


if this helps, please 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution 

erickeu_5-1701076753936.png

 

 or giving it a kudo 

erickeu_6-1701076753936.png

 


Thanks!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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