cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulMaksimovic
Regular Visitor

Common Data Service Date value and Calculated columns

Hello All

 

I have a couple of issues when using the common data service and I hope you can help.

 

1) The do not appear to be any calculated fields within the entities of the common data service.I am able to provide the calculations by adding a text box and performing calculations using the formula bar of powerapps however these fields are not then exportable when I am trying to export the data for reporting purposes. What I am looking for is a calculation field that refers to the other fields within the same entity.

 

2) I imported data into the common data service via excel. One of the columns were dates in the format of dd/mm/yyyy. for some reason this is displayed as m/dd/yyyy, 02:00 am. I can understand the regional settings are not configured for the UK ( which I will correct shortly) however I am unsure as to why the sate has 02:00 am included. I have applied a date filter within powerapps however this is not working and I believe it's down to this issue.

 

Kind regards

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi PaulMaksimovic,

 

About question#1, do you want to have a calculation field within the entity? It seems that currently CDS don’t support calculation field, you could consider to create a request at PowerApps Ideas Forum.

We can achieve this on PowerApps. Say I have a custom EntityA which contains three Number columns, column name are number, Number1, Number2.


Then create an auto-generated app based on this entity. On the EditForm screen, unlock the Number field, then set its Default property as DataCardValue15.Text*DataCardValue16.Text.


When values are entered in the Number1 and Number2 field, the number field would be calculated automatically. And it can also be saved to the entity.

3.PNG


About question#2, what’s the field type for the Date column? Is it a Date field or DateTime field?


According to this documentation about “Import or export data from the Common Data Service”, I test this issue with EntityA. I can import the data from Excel to EntityA with correct format.

https://powerapps.microsoft.com/en-us/tutorials/data-platform-export-data/


Please make sure the format you are using in the import Excel file is the same with the format you have configured for the Date field.

 

Please feel free if you need more help.

 

 

Best regards,
Mabel Mao

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,230)