Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everybody! 🙂
Im creating a multilingual report, and i need to create a Dax Measure called "Products" (in this case) that I insert into a table with the intention that when I change the USERCULTURE() in the Service, it will change the product description in the table showing the corresponding translation.
I have a table called 'Data' and its columns are [Desc], [Code], [Language] (as picture).
So when I created the Dax Measure I used a LOOKUPVALUE formula.
Solved! Go to Solution.
Hi @JLRequena ,
This is my test table:
Create two measures:
Selected_Language = LEFT(USERCULTURE(),2)
Products = IF(ISINSCOPE('Data'[Code]),MAXX('Data',IF([Selected_Language] = 'Data'[Language],'Data'[Desc])),BLANK())
Create a table:
If I change the language to italian:
The products will change according the Service language:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much for your answer, this looks like this is gonna be the best solution.
But right now im having problems creating the table with me measure ('Products') and the field Data[Code].
I dont know why its not working, because look very similar what you create and what I have (I think its my dataset). But i duplicate the Data table and filteres just for products but still not working
https://drive.google.com/file/d/16W6RU14R1sfyFzFXxw74VUP2E5DQpa40/view?usp=sharing
Here you can find the .pbix file if you think its better to solve it 🙂
Again, thank you so much!
You have an issue in your Data table - there is a leading space in the Language column.
I would recommend you look into Field parameters, or into creating separate reports. Your effort is impressive but I don't think this is maintainable.
See attached for the changes.
Thank you @lbendlin for your help, That was exactly what i needed to get the measure working!!
I know that is gonna be very difficult to do something useful for everyone, but i think i could do something good for particular cases that need a multilingual report.
Thank you!
Hi @JLRequena ,
This is my test table:
Create two measures:
Selected_Language = LEFT(USERCULTURE(),2)
Products = IF(ISINSCOPE('Data'[Code]),MAXX('Data',IF([Selected_Language] = 'Data'[Language],'Data'[Desc])),BLANK())
Create a table:
If I change the language to italian:
The products will change according the Service language:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ihave 2 table in my Power BI report B-Details and SPResult. SP result table is a stored procedure and will change dynamically with parameters. I want to create a new table from this in which it should filter Name and Country from B-Details and SPResult. Now after filtering this we have a uniquekey in B-Details. Now in the new table for each UniqueKey we have to get all the filtered values from SPResult table. So in the new table UniqueKey key row will be duplicated with as much rows we have in SPResult. Can you help me how to fix this?
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |