Forum Discussion
Dave
Advocate I
10 years agoDAX Year() Not Returning the Year
I have gotten some unexpected results when using DAX Year() - the year isn't returned in some cases. As a comparison, I created a new column the query editor, which always returned the correct value....
- 10 years ago
Hi @Dave,
When you adding a calculated column using Year() DAX function, it builds an integer a column.
And by default, all integer cols are summarized by using sum, that's why you have the total under your year column.
Open you model, select your table and "year" column, go to "Modeling" menu and change the property "Default Summarization" from "Sum" to "Do not summarize"
Greg_Deckler
Community Champion
10 years agoBrilliant, didn't eve see that.
fbrossard
Kudo Commander
10 years agoThx Greg_Deckler.
@Dave, sometimes you could have an integer column that of want to sum by default.
Nevertheless, you can modify the aggregation function at any time for any visual just by picking it :