Forum Discussion

pbiXlsx's avatar
pbiXlsx
Frequent Visitor
3 years ago
Solved

Syntatic sugar wanted

Hi,    how can I make this code better?   I am using this measure for a template approach. So I define the key for each line and calculate the value based on the key.    I know i could make thi...
  • vanessafvg's avatar
    3 years ago

    You can't iterate over a changing variable, thats not how power bi works, it will take the variable once and calculate it and then use it for your script.  You would need to create a different variable for each line.