Forum Discussion

jfn's avatar
jfn
Frequent Visitor
3 years ago
Solved

Calculate Token usage since time reference

I would like to track software license usage. At contract signature, we are given a specific number of tokens to rent software at our convenience. I currently have all the tokens amount we have ordered, with dates, in my datasource. Sometime we rent multiple products in the same day.  How can I achieve a panel that would show the remaining number of tokens in our contract?

Here an example:

DateToken usedRemaining tokens
January 1, 2021100400
January 10, 202150350
January 10, 202125325
January 20, 2021200125
   
Token on contract500 
   
   
Bluein MySQL 
RedNeeds to be in PowerBI 

 

 

 

7 Replies

    • jfn's avatar
      jfn
      Frequent Visitor

      Thanks ChrisMendoza , I think this is working... But my line chart show the slope the wrong way...? I should start with the full amount and then start going down... Any idea?

       

       

       

      • jfn's avatar
        jfn
        Frequent Visitor

        Actually, the RemainingTokens column reverts to the full amount when there's no credit being used... I need to find a way to use the remaining tokens from previous row...