Forum Discussion
schoden
5 years agoPost Partisan
Apply Certain Date Range using ISBLANK
Hi Community, I have a measure to calculate total sales: M= SUM(Sales[sales]) Now I have put Date Range to show next 6 Months including current Month Feb 2021. N= ...
- 5 years ago
schoden , Try like
0 between range Measure = var _1= CALCULATE(SUM(Sales[sales]), DATESINPERIOD( Date, NOW(), 6 , MONTH)) +0 var _min = calculate(minx('Calendar', 'Calendar'[Date]) ,DATESINPERIOD( 'Calendar'[, NOW(), 6 , MONTH)) var _max = calculate(maxx('Calendar', 'Calendar'[Date]) ,DATESINPERIOD( 'Calendar'[, NOW(), 6 , MONTH)) return CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))
Ashish_Mathur
5 years agoSuper User
Hi,
See if my solution here helps - Flex a Pivot Table to show data for x months ended a certain user defined month.
- schoden5 years agoPost Partisan
Hi Ashish_Mathur Thanks for the share . I am facing problem to show zero value for all blank months in the specified date range.