Forum Discussion
Vijaykumar_shan
2 years agoFrequent Visitor
Running total
Hello, How to get running total to start where Expected is not blank Year Month Actuals Expected Running total_actual 2023 January 7329305.26 2023 February ...
Vijaykumar_shan
2 years agoFrequent Visitor
Hello Daniel29195 , Pls let me know how resolve this error for above formula, while creating Measure
- Daniel291952 years agoCommunity Champion
it seems that you dont have a dimdate . also i noticed that excepted is a measure not a column.
modify your code as follow :
m = VAR mind = MINX ( FILTER ( ADDCOLUMNS ( ALLSELECTED ( data[date] ), "ex", [excpected] ), NOT ISBLANK ( [ex] ) ), data[date] ) VAR maxd = max(data[date]) VAR res = CALCULATE ( SUM ( tbl_name[actual] ), data[date] >= mind, data[date] <= maxd, REMOVEFILTERS ( data[date] ) ) RETURN reslet me know if it works for you ,
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠- Vijaykumar_shan2 years agoFrequent Visitor
Formula is not working, I have actuals and expected both as measures. pls see below screenshot after I apply formula