cancel
Showing results for
Did you mean:
Frequent Visitor

## Problem with Dates on DAXE

Hi experts,

I have a problem operating dates

I have used this formula to convert a Julian date to Calendar Dates

Date = DATE(INT(F60[DATE01]/1000)+1900,1,MOD(F60[DSDATE01],1000))

It seems to work as you can see in the following picture.

However, I am not able to create a hierarchy that breaks the date in days, month and year. Below what I want to get

I also need to calculate the number of days of the current and previous month. But, when I tried to use a new measure using the EOMONTH formula I got the following message:

"A single value for column 'Date' in table 'F60' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

Do you have any idea how can I solve those problems?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team

## Re: Problem with Dates on DAXE

Hi @IamJuan ,

You need to select the table "F59DBTSM" and then add the column, you can check your filed whether the calculated column added in the specific table. if you add it in other place, the error "A single value for column..." occured.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
Community Support Team

## Re: Problem with Dates on DAXE

Hi @IamJuan ,

You need to select the table "F59DBTSM" and then add the column, you can check your filed whether the calculated column added in the specific table. if you add it in other place, the error "A single value for column..." occured.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Problem with Dates on DAXE

@v-diye-msft , Thanks!

Announcements

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 154 members 1,898 guests
Recent signins: