Forum Discussion
Date Function - DAX - New column in Data Table
- 6 years ago
it is not such interesting as you think.
1. DAX calculated columns and measures aren't available in query mode. But Custom columns from Power query mode are available in DAX. DAX is the business logic lnguage, not data shaping
2. YEAR() function gets you integer and it is a whole number
3. if you want to return whole number into date, date wll be calculated as 1900+ Whole Number DAYS. so 2012 days is exactly 5 years + something
do not hesitate to give a kudo to useful posts and mark solutions as solution
it is not such interesting as you think.
1. DAX calculated columns and measures aren't available in query mode. But Custom columns from Power query mode are available in DAX. DAX is the business logic lnguage, not data shaping
2. YEAR() function gets you integer and it is a whole number
3. if you want to return whole number into date, date wll be calculated as 1900+ Whole Number DAYS. so 2012 days is exactly 5 years + something
do not hesitate to give a kudo to useful posts and mark solutions as solution
- DanielPasalic6 years agoHelper II