Forum Discussion
DAX Calculation for Collections %
- 8 years ago
HI mlz
Are you able to describe the tables that Collections and Charges come from? This will help clarify what DAX might be needed.
- 8 years ago
So each collection has a related charge (i.e. many/one relationship between collections/charges)? If that is true, make sure a relationship is set up through the modeling tab, and then try the following measure:
% of Charge = CALCULATE(DIVIDE(SUM(Collections[Amount]),SUM(Charges[Amount])),Collections)
Is that getting closer to what you are looking for?
- 8 years ago
Hi mlz,
Could you please share us some sample source data which we can copy and paste directly of the two tables if possible? So that we can make some proper tests.
Also, if you can share us your pbix file with One Drive or Dropbox or something else. It will be more helpful for us to find a solution.
Thanks,
Xi Jin.
Hi mlz,
Could you please share us some sample source data which we can copy and paste directly of the two tables if possible? So that we can make some proper tests.
Also, if you can share us your pbix file with One Drive or Dropbox or something else. It will be more helpful for us to find a solution.
Thanks,
Xi Jin.
I want to thank all that replied to my post. Just by having you request more clarification about the data and the relationships, I was able to tweek my data model that produced the numbers I was looking for. The trick was setting up the relationships correctly. Someone else mentioned that early on. I thought I had it correctly initially but as I kept digging I found that I had to fine tune it.
Thanks again.