Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
v-diye-msft
Community Support
Community Support

Hi @Anonymous ,

 

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.

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Anonymous ,

 

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.
Anonymous
Not applicable

@v-diye-msft , Thanks! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.