Forum Discussion
Calculate Token usage since time reference
- 3 years ago
jfn -
You can do as:
jfn -
You can do as:
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.
- jfn3 years agoFrequent Visitor
ChrisMendoza, I'm currently reviewing the link you sent as well as your PowerBI file. For reference, here's a link to my PowerBI file... https://ksheng-my.sharepoint.com/:u:/g/personal/jfn_ksh_ca/EdJSoV9sAJ1Ag6BD8J-9Nt4BQLCGQA36DyjU9NvECjqFJA?e=W0rkRk