Forum Discussion
Daily Values from Running Total
Hello VahidDM,
I have updated the question.
I come up with solution but it is only working on the sample dataset. When I use the same DAX formula on the actual dataset, PowerBI is stuck on working on it.
What will suggest on optimizing the DAX formula?
Thank you!
Why not using it as a Measure instead of a calculated column. The DAX will work just fine into a measure.
- blackgold3 years agoRegular Visitor
I tired that and I get an error saying:
A single value for column 'Key' in table 'Table' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
- aj19733 years agoCommunity Champion
Did you modify the measure in the picture above to get it work as a Measure? Like in the Return, did you add Sum(Table...)
Try to evaluate your VAR one by one until you get to know which one needs a little modification..... remember to keep the logic of your calculated column.
- blackgold3 years agoRegular Visitor
What function should I use 'Table'[key] since it is a string?