Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello!
I have a simple table with 'end of year' date, org unit and number of employees - see screenshot. I would like to convert all the numbers in the table below into variables so that I can use them in other calculations like turnover or growth.
I created a dimension table with all the org units that connects the "orgenhet" in this table to the main table. This is because I wanted to avoid to have to created a variable per org unit. I tried something like this:
Solved! Go to Solution.
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 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 @key_to ,
Could you please tell me more about your purpose of converting numbers to variables?
What do you want to calculate?
But the function SUMX needs two parameters and the first parameter needs to be a table:
SUMX function (DAX) - DAX | Microsoft Learn
You can refer this documentation.
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @key_to,
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
Proud to be a Super User!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
95 | |
86 | |
78 | |
66 |
User | Count |
---|---|
157 | |
125 | |
116 | |
111 | |
95 |