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

Passing Date value from PowerBI to PowerApps - Received unexpected value

Hi, 

 

I have a Power BI report with a Date selection filter. In the report I have created a PowerApps visual connect to my Power Apps and passing the Date value from filter to Power Apps. Let says the Date in the Slicer is 2 July 2019. 

 

In Power Apps I use the following function to display the Date in a label: First(PowerBIIntegration.Data).Date

 

And the result I received is : 2019-07-01T16:00:00.000Z

 

I notice that my current time zone is 8 hours after UTC, so the powerapps might have tried to convert wrongly the time into UTC timezone. 

 

Is there any option that I could use to prevent this conversion? I expect the Power Apps to show 2019-07-02. 


Thanks for your support. It is appreciated. 

 

Regards, 

 

DC

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hi @dccc019 

 

Can you try out the expression:
 
DateValue(Text(DateAdd(First(PowerBIIntegration.Data).Date, -TimeZoneOffset(First(PowerBIIntegration.Data).Date), Minutes)))
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,725)