The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?