Forum Discussion
Showing percentage from two different datasets
- 5 years ago
Hi Mazex1985
Do you create relationships between Users table and other two tables based on User columns? I would recommend using a measure to get the percentage.
Percentage = DIVIDE(SUM(Earnings[Earnings]),SUM(Expenses[Expenses]))You can also get it with a calculated column in Users table. Here is a sample pbix.
Column = DIVIDE(SUMX(FILTER(Earnings,Earnings[Users]=EARLIER(Users[Users])),Earnings[Earnings]),SUMX(FILTER(Expenses,Expenses[Users]=EARLIER(Users[Users])),Expenses[Expenses]))Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
No, I am not using any calendar there, why there shall be a calendar? its not dates dependent.
Thanks
- SpiroswayGR5 years ago
Resolver III
I was thinking if you wanna work around with time measures for expences or earning.
In that case , either you will try to use cross filter direction = both , so you will able to filter then (not so good solution if you want to expand with more tables and measures).
Better solution is to use these dax (relate and userelathioship) like below : https://stackoverflow.com/questions/14366192/using-related-function-in-dax-with-userelationship