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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
barak_power_bi
New Member

Translate to arabic by calculated column based on another table

Hi, 

 

I have table dim_language contain two rows:

 

Lang_Key        Lang_Name

 

     1                  English 

     2                  Arabic

 

In another table dim_field (without relationship with the first dim_language)  i have the next columns:

 

Field_Name_key      Field_name_English        Field_Name_arabic

    1                                 math                          ?????

    2                                 english                       !!!!

    3                                  history                       ######

   

I created the next measure:

Lang_Flag = if(calculate (SELECTEDVALUE(Dim_Language[Lang_Key])) =11, 2)
 
then I created the next calulated column in dim_Field:
 
Field_Name_Dynamic = if([Lang_Flag] ==1, dim_Field[Field_name_English] , dim_Field[Field_Name_arabic])
for the change the displayed contect in the report.
I want every the value of Lang_Flag is changed the contect in  Field_Name_Dynamic  as well.
 
The result show that the value of meature is changeed by the change slicer, but the contect from Field_Name_Dynamic is not.
Why? 
How I fix the Problem ?
 
 
Thanks, Barak
 
1 REPLY 1
tamerj1
Super User
Super User

Hi @barak_power_bi 

calculated columns do not interact with the filter context. What exactly are you trying to accomplish?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors