Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table of Expense totals by month and another table of individual Sales.
I have managed to link them using a key column of ProductYearMonth which is unique to the Expense table.
I can create a matrix with the Columns being Year Month and the rows being product and display Total Revenue and Expense by Product and Period, but I can't work how to calculate Surplus (Revenue-Expense) and ROI (Revenue divided by Expense). I have tried creating a measure but nothing I try is acceptable as a DAX formula.
Thank you for any help you can give me.
Solved! Go to Solution.
I have solved this problem. I created a column for Revenue and then all my calcs worked.
Revenue =
CALCULATE (
SUM ( 'Gift Data'[Gift Amount] ),
FILTER (
ALL ( 'Gift Data'[Gift Date] ),
'Gift Data'[Gift Date] <= MAX ( 'Gift Data'[Gift Date] )
)
)
I have solved this problem. I created a column for Revenue and then all my calcs worked.
Revenue =
CALCULATE (
SUM ( 'Gift Data'[Gift Amount] ),
FILTER (
ALL ( 'Gift Data'[Gift Date] ),
'Gift Data'[Gift Date] <= MAX ( 'Gift Data'[Gift Date] )
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |