Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have trouble solving the following measure.
I would lik to calculate the rolling (cumulative) revenue for one person.
My calculation is: DIVIDE(TOTALYTD([net revenue], 'Date table'[Date]),TOTALYTD([count of employees], 'Date table'[Date]),0)
The way it calculates:
(Net revenue for January/count of employees for January) + (Net revenue for February/count of employees for Febarury) + (Net revenue for March/count of employees for March) + ...
Although, this is not what I want. I would like to calculate like this:
Net revenue for January + Net revenue for February + Net revenue for March + ... / count of employees for January + count of employees for February + count of employees for March...
Can you help me which measure I should use?
Thanks a lot!
Kind regards,
Benjamin
Solved! Go to Solution.
Hi @kormosb ,
You could create variables of TOTALYTD, and then use them to calculate divide.
Measure = var a = TOTALYTD ( [net revenue], 'Date table'[Date] ) var b = TOTALYTD ( [count of employees], 'Date table'[Date] ) return DIVIDE ( a, b, 0 )
If it still doesn't work, can you please share some sample data and the expected results?
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @kormosb ,
You could create variables of TOTALYTD, and then use them to calculate divide.
Measure = var a = TOTALYTD ( [net revenue], 'Date table'[Date] ) var b = TOTALYTD ( [count of employees], 'Date table'[Date] ) return DIVIDE ( a, b, 0 )
If it still doesn't work, can you please share some sample data and the expected results?
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |