cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dccc019
Level: Powered On

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
Dual Super User
Dual Super User

Re: Passing Date value from PowerBI to PowerApps - Received unexpected value

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,363)