Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
Need your help please. I have the following Data:
Date&Time | Period | Account | Category | Payee/Place | Amount | Cleared | Note | Sign |
7/31/2019 22:21 | 2019 P07 | Main Account | basketball | ($7.00) | Yes | -1 | ||
7/30/2019 18:17 | 2019 P07 | Main Account | sahha | ($5.00) | Yes | -1 | ||
7/30/2019 8:07 | 2019 P07 | Main Account | Audi LBP | $145.00 | Yes | 1 | ||
8/29/2019 19:55 | 2019 P08 | Main Account | crepeaway | ($25.00) | Yes | -1 |
and so on,
I calculate the expense and income with the following measure formula
Solved! Go to Solution.
I created a new measure called income - expense (Where income and expense are measures i created with the same forumula given by you) and added that as values under a Bar chart with Period as X axis ( Note: I have done Income +expense in the formula to take care of the negative sign in amount, so the subtraction would happen properly)
I created a new measure called income - expense (Where income and expense are measures i created with the same forumula given by you) and added that as values under a Bar chart with Period as X axis ( Note: I have done Income +expense in the formula to take care of the negative sign in amount, so the subtraction would happen properly)
Have you tried to create a new calculated column that just calculates the difference between Income and Expense? You could probably just drag that new column into the "Values" section of your plot.
If the only periods you're looking at are June, July, and August of 2019, you can just stick the "Period" column into the "Axis" section of your plot. If you're having issues with ordering that, you would have to create an index column that orders the months accordingly. For instance, having another column that sets June=1, July=2, August=3 and sorting the plot by that new column in ascending order.
Oh, I see. Well since your "Amount" column does technically include Income and Expenses (income being positive values and expenses being negative values), you could try to create a Measure that just sums your "Amount" column.
User | Count |
---|---|
141 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
123 | |
101 | |
71 | |
61 |