I am attempting to graph, via Power View, the sum of all account balances at various points in time, so that I can see how the total is changing.
I do not have transaction history (add / subtract), only 'Balance' at a specific point in time for each account.
A simplified example of my data is:
Account Date Balancea111 01 January 2015 100a111 01 February 2015 150b222 01 March 2015 200c333 01 March 2015 300b222 01 May 2015 150d444 01 June 2015 400
As far as I can tell, I need to create a measure to generate a dynamic rank per 'Account', ordered by latest date. I should then be able to create a second measure to SUM each account where the rank = 1.
There is a similar example of this issue discussed in the question PowerPivot DAX - Dynamic Ranking Per Group (Min Per Group), however I cannot seem to get this to display how I want on a line graph in Power View.
What I want to display on the line graph is (letting the graph sort out the missing dates):
Date Balance01 Jan 2015 100 -- Account a111 only01 Feb 2015 150 -- Account a111 only, but the new value01 Mar 2015 650 -- Accounts a111 (latest), b222 and c33301 May 2015 600 -- As above, but account b222 is updated01 Jun 2015 1000 -- Latest values for all accounts
However, what I am currently seeing is:
Date Balance01 Jan 2015 100 -- Sum of Balances matching this date01 Feb 2015 150 -- As above01 Mar 2015 500 -- As above01 May 2015 150 -- As above01 Jun 2015 400 -- As above
The problem, as far as I can tell, is that at each data point in the graph, the 'filter context' is reducing down to only the rows that match the date, whereas I need all rows on on before that date with a 'rank' of 1.
For reference, I am using Excel 2013 and the data is ultimately coming in via Power Query (pulling data from SharePoint), so I can work some magic there if necessary (i.e. generating a numeric 'group id' for use with DAX MAX() function, as that doesn't seem to like strings).
I hope this is not to confusing, and thanks in advance for any help.