Forum Discussion

Arendp's avatar
Arendp
Icon for Helper III rankHelper III
4 years ago
Solved

Filter on visual impacting measure

hello, hope someone can help me with the following.   I have table with inventory development per day. To get inventory status per day, I use: Cumulatief Voorraad nieuw = var _currdate = max...
  • Whitewater100's avatar
    Whitewater100
    4 years ago

    Hi:

    Please see attached file for example of cumulative total (page2).

    Cumulative Sales Example =
    var runningtotal = CALCULATE(SUM(Sales[Sales Amt]), FILTER(ALLSELECTED(Dates),
    Dates[Date] <= MAX(Dates[Date])))
    Return
    IF(CALCULATE(SUM(Sales[Sales Amt])) = BLANK(),BLANK(), runningtotal)
     
    I willattach a file as example,please see page 2. 
     
    If you want to get you inventory value as any point in time and you have various days when inventory is last reported you should generally have a Date Table, a product dimension table(if inventory is stored at this grain) and a Inventory Fact Table, with date,product,amount on hand.
     
    If you want to creat an example of these tables in excel (with expected results) I can try to 
    do a measure to show last inventory value.
     
    I hope this helps!