Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Troubles with date variables in Power Apps after transfering app from Sharepoint to Dataverse

Posted on by 126
I have earlier created an app based on Sharepoint lists.
Now I am about to change the app to be based on tables in Dataverse.
 
Everything was working fine when the sources were located in Sharepoint, but now when the sources are in Dataverse tables, the formulars doesn't work as before...

Somehow an error appears regarding dates... 


The table (Tidsregistreringer) contains 3 columns where informations is stored regarding a date, the number of an employee and the number of hours: 
Tidsregistreringer_Dato
Tidsregistreringer_Medarbejdernummer
Tidsregistreringer_Timer

The date is created by using the "Today()" function in Power Apps. 


When I would like to retrieve the informations i a gallery in Power Apps I run these formulars:
Set(DefaultDateFrom; Today()-Weekday(Today())+2)

The gallery is to show the sum of the hours per employee on the specific date ("DefaultDateFrom")...:
The field with the number of hours are calculated as:
With({baseTable: Filter(Tidsregistreringer;Tidsregistreringer_Medarbejdernummer=ThisItem.Medarbejdernummer;Tidsregistreringer_Dato=DateAdd(DefaultDateFrom;0;TimeUnit.Days))};
Sum(baseTable;Tidsregistreringer_Timer))

 
The label that should show the number of hours in the gallery is empty.... 
If I remove the part with the date then figures appears.... So somehow the dates are causing the error...  
 
How is that? - And how do I get it to work again?
(is there some settings, that changes when comparing Sharepoint and Dataverse?)

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard