Forum Discussion
DAX Year() Not Returning the Year
- 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"
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_Deckler10 years ago
Community Champion
Brilliant, didn't eve see that.
- fbrossard10 years ago
Kudo Commander
Thx 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 :
- Dave10 years ago
Advocate I
Thank you much! Setting the "Default Summarization" to "Do Not Summarize" resolved my issue. Also, thanks for all input on when to use M vs DAX.