Forum Discussion
In and out-flow from money. Create difference and aggregate value by month.
Hi sven7,
What is the month column you have in your table is it from calendar or from you data table?
Regards,
MFelix
Hi MFelix,
the month column in my table draws the month from the date a booking has been made on an account.
Month = Format(Logs[Date];"yyyy-MM")
This is how my calendar table looks like, there is no connection to the other sheet.
calendar = CALENDARAUTO(12)
BR Sven
- MFelix8 years ago
Super User
hi sven7,
Create a month column on your calendar table and place that column on your visual
Regards,
Mfelix
- sven78 years agoFrequent Visitor
Hi MFelix,
I used both ways, I am so far that it shows the balance or difference by each month, but not the rolling value. Also it is only showing 2017 and no previous years.
Any further tips are much appreciated thank you so much for your help.
- MFelix8 years ago
Super User
Hi sven7,
My error mixup two different solutions I was working on.
Create the relationship between both tables and then add this measure:
Balance = TOTALYTD(SUM(Money_In_Out[Amount received])-SUM(Money_In_Out[Amount taken]),'Calendar'[Date])
The other formula without links was to make it month on month no matter the Year so the balence from december would go to January
In that case you need to use the formula:
Balance_1 = var dimdate = MAX('Calendar'[Date]) return CALCULATE(SUM(Money_In_Out[Amount received])-SUM(Money_In_Out[Amount taken]),Money_In_Out[Date] <= dimdate)and don't connet the tables.
Regards,
MFelix