Forum Discussion
wech747
9 years agoFrequent Visitor
[Single number card] Create visual filter where year=current year
Hi, i am struggling with creating a dynamic filter on a single number card, which I want to show the sum of a value of the current year. So far, I've just ticked the appriopriate year in the visu...
- 9 years ago
...meanwhile I've got a solution for this case:
I just created a measure and integrated the filter argument in there:
sum of price in current year = CALCULATE(AVERAGE(Tabelle12[price]);Tabelle12[year]=YEAR(TODAY()))
Thanks for your help anyway!
wech747
9 years agoFrequent Visitor
Hi ceebu,
you are right, a screenshot might do a good job in this case:
I want to create a filter, which automatically selects the current year, instead of manually clicking it as shown in the screenshot.
Can you help me with that?
ceebu
Advocate I
9 years agoYou should be able to use the TopN filter to select the values dynamically.
If your date column is formatted as date type, then you can select "Latest date" option to show current year.