Forum Discussion
joshua1990
Post Prodigy
3 years agoRunning total until today
Hi all!
I have a simple line bar chart that displays the latest information (Sum Value) vs the Budget.
The line represents the budget accumulated per day for the selected month.
The bar represe...
Anonymous
3 years agoNot applicable
Hi joshua1990 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
past and today =
IF(
MAX('Calendar'[Date])>=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
&&
MAX('Calendar'[Date])<=TODAY(),
SUMX(
FILTER(ALL('Calendar'),
'Calendar'[Date]<=MAX('Calendar'[Date])&&'Calendar'[Year]=MAX('Calendar'[Year])&&'Calendar'[Month Num]=MAX('Calendar'[Month Num])),[Sales]),BLANK())full month =
IF(
MAX('Calendar'[Date])>=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
&&
MAX('Calendar'[Date])<=TODAY(),
SUMX(
FILTER(ALL('Calendar'),
'Calendar'[Year]=MAX('Calendar'[Year])&&'Calendar'[Month Num]=MAX('Calendar'[Month Num])),[Sales]),BLANK())
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly