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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jochemd96
Frequent Visitor

Using a column based on language

Hello,

 

I recently started creating PowerBI reports and now I start to get stuck a little. I think I have a fairly easy to solve problem, but I can't get the hang of it.

 

I have the following dataset:

 

jochemd96_0-1637672925740.png

Column A contains an index for sorting out the rows. This index will be nearly invisible in the report.

Column B contains an English P&L statement description.

Column C contains the Dutch P&L statement description.

Column D contains the displaycode which refers to a mapping table, which then refers to values, but that's not important for now. That part works fine.

 

I also have a slicer based on this table:

jochemd96_1-1637673041422.png

 

Whenever I select "Nederlands" I want my report to show the Dutch descriptions (column C) and whenever I select "Engels", I want it to show English descriptions (column B).

 

I already tried making an extra column with the following formula...

 

Column = IF(
        SELECTEDVALUE(Talen[Taal]) = "Nederlands",
    Display[DisplayOmschrijving],
    Display[DisplayDescription]
)

 

... but that does not seem to work as it always returns the English value.

 

Is there any solution to this? What am I doing wrong?

 

Any help would be appreciated. Thanks a lot!

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @jochemd96 ,

You can use a measure like this:

 

Measure =
IF (
    SELECTEDVALUE ( 'Talen'[Taal] ) = "Nederlands",
    MAX ( 'Display'[DisplayOmschrijving] ),
    MAX ( 'Display'[DisplayDescription] )
)

 

Then put the column Index and this measure into a visual, it works.

vkalyjmsft_1-1637908696012.png

Here's the difference of calculated column and measure:

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @jochemd96 ,

You can use a measure like this:

 

Measure =
IF (
    SELECTEDVALUE ( 'Talen'[Taal] ) = "Nederlands",
    MAX ( 'Display'[DisplayOmschrijving] ),
    MAX ( 'Display'[DisplayDescription] )
)

 

Then put the column Index and this measure into a visual, it works.

vkalyjmsft_1-1637908696012.png

Here's the difference of calculated column and measure:

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@jochemd96 Columns are not dynamic based on user input but are only calculated during load/refresh. I wrote an entire blog series on multi-language support here: 

https://community.powerbi.com/t5/Community-Blog/Localizing-the-Data-Model-Part-1/ba-p/2062997

https://community.powerbi.com/t5/Community-Blog/Localizing-the-Data-Model-Part-2/ba-p/2065547

https://community.powerbi.com/t5/Community-Blog/Localizing-the-Data-Model-Part-3/ba-p/2071522

https://community.powerbi.com/t5/Community-Blog/Localizing-the-Data-Model-Part-4/ba-p/2095284

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks, I already suspected such thing. What do you suggest to solve this problem?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.