Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hi, I am new to Power BI and I am trying to create a column in a table with a customer name that is held in another table, but only where the environment is set to production
Example trying to populate the Customer Name in this DIM table. This table only has Unique values, the key is ID
From Data in this FACT table, but only where the environment is production, the column called CustomerDescr exists in the below table also, which is what I am trying to get in the above, this table has 500+ rows, and 300+ distinct values, the Key is IdentifiedInstallationID
I have relationships set up between the 2 tables (1 to Many)
Thanks in advance
Dave
Solved! Go to Solution.
Hi, @Parkyerbike
You might want to try the following DAX expression:
Customer Name =
CALCULATE (
MAX ( 'Table2'[CustomerDescr] ),
FILTER (
'Table2',
'Table'[Id] = 'Table2'[IdentifiedInstallationID]
&& 'Table2'[Enviroment] = "Production"
)
)
Below is the example data I used:
table1:
table2:
relationship:
The results of the calculation columns are shown below:
Hi, @Parkyerbike
You might want to try the following DAX expression:
Customer Name =
CALCULATE (
MAX ( 'Table2'[CustomerDescr] ),
FILTER (
'Table2',
'Table'[Id] = 'Table2'[IdentifiedInstallationID]
&& 'Table2'[Enviroment] = "Production"
)
)
Below is the example data I used:
table1:
table2:
relationship:
The results of the calculation columns are shown below:
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
61 | |
61 | |
55 | |
38 | |
27 |
User | Count |
---|---|
86 | |
61 | |
45 | |
41 | |
39 |