Forum Discussion
powerbiss
Helper I
4 years agoCalculate Budget quantity till current month
Hi Guys, I am trying to sum the quantity column from Jan to current month of this year. The measure should be dynamic that is if the month is July then the measure should calculate the quantity from...
- 4 years ago
Hi powerbiss ,
You could create a measure as below:-
Measure = CALCULATE ( SUM ( 'Table (3)'[quantity] ), FILTER ( 'Table (3)', YEAR ( 'Table (3)'[budget_date] ) = YEAR ( TODAY () ) && MONTH ( 'Table (3)'[budget_date] ) <= MONTH ( TODAY () ) ) )Output:-
BR,
Samarth
Samarth_18
Community Champion
4 years agoHi powerbiss ,
You could create a measure as below:-
Measure =
CALCULATE (
SUM ( 'Table (3)'[quantity] ),
FILTER (
'Table (3)',
YEAR ( 'Table (3)'[budget_date] ) = YEAR ( TODAY () )
&& MONTH ( 'Table (3)'[budget_date] ) <= MONTH ( TODAY () )
)
)
Output:-
BR,
Samarth
powerbiss
Helper I
4 years agoHi Samarth,
The DAX measure worked. Thanks for your help.