Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everybody,
I'm quite new to PowerBI and wasn't able to solve the following problem:
I have two tables (BeneficiariesIndicators and BeneficiaryIndicatorsName) that are related (1:n) through a primary key (ID resp. BeneficiaryIndicatorId):
I would want to concatenate the IDCode with the IndicatorName in the table "BeneficiariesIndicators" (I've tried to create a new column in the table "BeneficiariesIndicators") but since the IndicatorName exists in 4 different languages, PowerBI doesn't know which value to select. The LanguageId I would want it to display is "1" (formatted as a whole number).
Any ideas?
Solved! Go to Solution.
Hi @MFelix
Thanks again for your help. I've now solved it the "rookie way" 😉
1. I created a new table and linked it to the 'BeneficiariesIndicators' ->
2. I looked up the IDCode ->
3. I concatenated the IDCode & Name ->
Hi @Anonymous ,
Try the following calculated column:
Beneficiaries_Indicator_Name =
CONCATENATE (
'BeneficiariesIndicator'[IDCode];
LOOKUPVALUE (
'BeneficiariesIndicatorNames'[IndicatorName];
'BeneficiariesIndicatorNames'[BeneficiariesIndicatorID]; 'BeneficiariesIndicator'[ID];
'BeneficiariesIndicatorNames'[LanguageID]; 1
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi MFelix and thanks for your quick response! It would probably work if it wasn't for: "Function 'LOOKUPVALUE' is not allowed as part of calculated column DAX expressions on DirectQuery models.". Is there a way to work around this?
Hi @Anonymous ,
Did not know it was a direct query try the following code:
Column 2 =
CONCATENATE (
'BeneficiariesIndicator'[IDCode];
CALCULATE (
MAX ( BeneficiariesIndicatorNames[IndicatorName] );
FILTER (
BeneficiariesIndicatorNames;
BeneficiariesIndicatorNames[BeneficiariesIndicatorID] = BeneficiariesIndicator[ID]
&& BeneficiariesIndicatorNames[LanguageID] = 1
)
)
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix
Thanks again for your help. I've now solved it the "rookie way" 😉
1. I created a new table and linked it to the 'BeneficiariesIndicators' ->
2. I looked up the IDCode ->
3. I concatenated the IDCode & Name ->
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.