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))
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.
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))
- marcopete10 years agoRegular Visitor
Thanks everyone, this measure adapted to my model made the right thing, I appeciate your help.
I was watching this derived post for a complement of this thread.