Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have this part of my script that i need to make it run different parts of the code based on the language:
Apprecaite any ideas about it, thank you
To clarify, i want a script that branch logic to implement scertain parts:
I need help to include a condition in my steps for the below part:
Thank you,
your code results in different column names which will trigger a meta data update, and is generally considered to be a bad thing. Would be better if you would keep the column names constant and carry the language choice through as a separate column.
replace "elsif" with "else if" and you should be good.
or you could refactor the code and move the checks inside the list.
However your code results in different column names which will trigger a meta data update, and is generally considered to be a bad thing. Would be better if you would keep the column names constant and carry the language choice through as a separate column.
THank you @lbendlin . The data is fetched from an API which has columns values stored in three languages, i.e. "Reached", "Atteints", "Atendidas". Iam now rethinking it, to store these values in a separate table i.e. measurementsLanguages
Language | Value1 | Value2
En | Reached | CumulativeReach
Fr | Atteints | Cumulatteints
and use them based on the language selected.
let
But this didn't wok as it assume measurementsLanguages is the datasource and is not fetching the column names. Do you have any better way of doing it?
Check out the July 2025 Power BI update to learn about new features.