Hi eDNA Forum:
I’m expecting to have to deliver some multi-lingual reports in the near future, and am interested in the experiences of others as I prototype possible solutions. As most of my consulting is to the Canadian government, just about everything needs to be in both English and French. I’ve done this many times before fully successfully using SSRS reports, but have only had success in Power BI with a lot of expended effort.
My goal is to use one report design, with two separate instances, one each for EN and FR. One option is to:
- Retrieve all dimension values in both EN and FR text
- Add and retrieve a database table/view to hold all translations (e.g., report titles, subtitles, visual titles, etc.)
- Add a hidden Language slicer with 2 values, EN and FR; select the language to display complete with a harvesting measure
Selected Language Code = SELECTEDVALUE( Languages[Language Code] )
- Add new measures for each title and each fact table column to return the appropriate dimension text column based on language selection
e.g., for Country, use a measure like
Country =
SWITCH( TRUE(),
[Selected Language Code] = "EN", MAXX( Transactions, RELATED( Countries[Country EN] ) ),
[Selected Language Code] = "FR", MAXX( Transactions, RELATED( Countries[Country FR] ) ),
[Selected Language Code] = "ES", MAXX( Transactions, RELATED( Countries[Country ES] ) ),
BLANK()
)
- Build visuals using the new measures, using the measures as-is on the EN page and using the measures again on the FR page, but this time manually edit the display name in the field well of the visual
- If tables or matrices, edit the display names manually in the Fields well to suit the display language
I’ve created a small sample Excel dataset with English, French, and Spanish placeholder dimension values along with a three-page PBIX as a test bed. (I left the language slicer visible for our discussion, but it would be hidden before release.)
As for deployment, I can see two options:
- deploy once, and let the user choose the desired page
- deploy twice, each time hiding the page(s) for the un-desired language, then edit the report name to suit in the service
Thoughts? Please rip it apart; I always find that discussion is more vigorous when the test case is wrong, so …
Thanks in advance for your time.
Greg
Translations.xlsx (29.4 KB)
eDNA Forum - Translations v2.pbix (152.8 KB)