cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IamJuan Frequent Visitor
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.
 
date3.PNG
 
However, I am not able to create a hierarchy that breaks the date in days, month and year. Below what I want to get
 
date 2.PNG
 
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?
 
I would appreciate any help you can give me.
 
Thanks Smiley Happy
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
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.

00.PNG

 

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
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.

00.PNG

 

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.
IamJuan Frequent Visitor
Frequent Visitor

Re: Problem with Dates on DAXE

@v-diye-msft , Thanks! Smiley Happy

Helpful resources

Announcements
Virtual Launch Event

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

Power BI Helps Homeless and Trouble Youth

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

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 154 members 1,898 guests
Please welcome our newest community members: