Forum Discussion
Current time in report
- 10 years ago
One expression you could try would be-
Measure = CALCULATE(SUM([ValuesColumn]), FILTER(CalendarTable, [YearColumn] >= YEAR(NOW()) - 7))
Hi,
You can solve this by creating the measure you want to plot as "Measures last 7 years" using DAX and returning blank for periods outside your current period.
I have an example of this here
Hope this can help you
/Erik
Thanks for yor answer donsvensen.
I made DAX measures since I begin with power BI, but retrning blank not.
This measure should be marked for report - level filters?
How I use the measure for filter time? I use dax for returning numeric results.
Regards.
- donsvensen10 years ago
Skilled Sharer
Hi
You should use the new measure as the value in the charts, not as a filter
So for year 2009 your dax measure should return BLANK() and then the year (as your axis) won't appear in your chart
/Erik
- marcopete10 years agoRegular Visitor
Appreciate your help but cant show the period i wish.
Can you show a standard example to create the measure?
I create columns with current date, current year and current month.
Thanks.
- itayrom10 years ago
Resolver II
One expression you could try would be-
Measure = CALCULATE(SUM([ValuesColumn]), FILTER(CalendarTable, [YearColumn] >= YEAR(NOW()) - 7))