Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
yoshihirok
Post Prodigy
Post Prodigy

How can I convert the datetime of streaming dataset to local time in Q&A X-axis ?

I want to show the datetime data of streaming dataset to local time in Q&A X-axis.

 

Streaming dataset:

"DateTime" is DateTime type

"Processor time" is Number type.

"Computer" is String type.

 

"DateTime" value build by PowerShell's Get-Date which have Time zone information.

My Time zone is +09:00 on Japan.

"ProcessorTime" value build by Performance Counter's % Processor Timer.

"Computer" value build by my computer name.

 

The visual by Q&A: "show avg of processor time by date within last 5 minutes group computer "

The tile x-axis's DateTime Timezone is GMT.

Just like 09:06 at 18:06 on Japan.

 

The visual by Add a custom string tile which "axis" is "DateTime", "values" is "ProcessorTime".

The tile x-axis's DateTime Timezone is JST.

Just like 18:06 at 18:06 on Japan.

 

So, I want to change X-axis timezone from GMT to JST in Q&A visual.

 

Regards,

Yoshihiro Kawabata

 

 

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @yoshihirok,

 

Did you use the azure steam analytics to output the data? If it is a case, you can use dateadd function to modify query to format the datetime to your timezone.


Sample:

DATEADD(hour,2,EntryTime)

 

Reference links:

Stream Analytics Query Language Reference

Date and Time Functions (Azure Stream Analytics) 

DATEADD (Azure Stream Analytics)

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi, @v-shex-msft thank you for your information about Azure Stream Analytics, and DATEADD function.

 

Yes, by using Azure Stream Analytics, solve this issue.

Now, I want to know this without Azure Stream Analytics, no-additional-cost, no-additional-learning, no-additional-managing to convert the datatime to user's timezone.

 

Power BI's streaming dataset feature is very cost-effective service to visualize realtime data.

I'm looking for more effective senario of this feature.

 

Regards,

Yoshihiro Kawabata.

 

Hi @yoshihirok,

 

Ok, I will keep researching for your requirement.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

In ASA, there is a known issue in which ASA does the internal conversion from ISO8601 to UTC without any option to alter that behaviour. (effectively losing the timezone offset)

 

In our case, we had to add additional columns and perform all the calculations to get back to the local timezone

 

Alejandro Leguizamo

@ @witter: @AlejoSQL

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors