Forum Discussion
help creating a variable
- Anonymous4 years ago
Hi and thanks to you both for putting me on a right path!
I was probably just thinking to complicated. I wanted to be able to refer to the number from the table through variable and I think I achieved it simply with the calculate function:
This looks correctly when testing. Now it remains to see whether I get the right results in my calculation of turnover and growth 🙂
Hi Anonymous,
Not sure what are you trying to do, but why do you need a variable for each organization?!
If you have created a dimension table, then create a relationship between the fact and the dimension table and use the organization as a slicer/field on your report.
If you are trying to get the value of the previous year of the same organization then you can use MAX() function over the dates column.
Please provide us more information along with a sample PBIX file.
Thank you,
Vishesh Jain