Forum Discussion
Calculate Token usage since time reference
- 3 years ago
jfn -
You can do as:
jfn -
You can do as:
- jfn3 years agoFrequent 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?
- jfn3 years agoFrequent 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...
- ChrisMendoza3 years agoResident Rockstar
jfn - I feel like I don't have enough understanding of your data model to replicate your issue as my example outputs as I would expect. I recommended reviewing the pattern/technique described at Computing running totals in DAX - SQLBI which is what I've used in this solution with my sample data. If you would like assistance with your data/.pbix you'll need to include as such.
Find the attached .pbix file for your review.