Forum Discussion
pbiXlsx
3 years agoFrequent Visitor
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...
- 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.
vanessafvg
Community Champion
3 years agoYou 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.