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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (55,459)