Forum Discussion

shalnark0727's avatar
shalnark0727
Frequent Visitor
7 years ago
Solved

Time lapse for actual vs target

Hi guys. How can I do a timelapse for sales vs target? Here's the sample table and desired output. Thanks.

 

 

Table 1

ClientDateInvoice_amount
Sam01/10/20191000.00
Bob01/14/20192000.00
John01/20/20195000.00
Paul01/25/201915000.00

 

Table2

MonthTarget_sales
January31000.00

 

 

Desired output is a guage showing total sales of 23,000 & target of 25,000 (as of January 25) instead of 23,000 & target of 31,000. Then the next day (January 26) it will show a target of 26,000, thanks.

  • If the target is $1,000 per day then you could create a "goal" measure perhaps that was simply:

     

    Measure = 

    VAR __max = MAX([Date])

    VAR __day = DAY(__max)

    RETURN

    __day * 1000

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    If the target is $1,000 per day then you could create a "goal" measure perhaps that was simply:

     

    Measure = 

    VAR __max = MAX([Date])

    VAR __day = DAY(__max)

    RETURN

    __day * 1000

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Where does the target of $25,000 come from? Is that a percentage of the total for January or ?