Forum Discussion
gco
6 years agoResolver II
Need help with measures
Hi there, Could you please help me figure out how to create a measure that only displays the data from 01/31 up to 09/30 below? I cannot use a filter in the view because i will be replacing 10/3...
- 6 years ago
Hi gco
Create a measure
Measure = IF ( MAX ( 'calendar'[year] ) = YEAR ( TODAY () ) && MAX ( 'calendar'[month] ) < MONTH ( TODAY () ), CALCULATE ( SUM ( Sheet8[value] ), FILTER ( ALL ( 'calendar' ), 'calendar'[year] = YEAR ( TODAY () ) && 'calendar'[month] < MONTH ( TODAY () ) && 'calendar'[Date] <= MAX ( 'calendar'[Date] ) ) ) )My calendar table
calendar = ADDCOLUMNS(CALENDARAUTO(),"year",YEAR([Date]),"month",MONTH([Date]))
add column
monthend = ENDOFMONTH('calendar'[Date])Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
6 years agoCommunity Champion
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008