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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ITInge
Frequent Visitor

How to set timeZone using pbi parameters

I would like to create a report that has dynamique date gestion.

 

My need it to pass the timezone offset via a parameter. then generate a new date column based on UTC column + Timezone offset parameter.

 

I started by creating a parameter that have type any ( may be I should change the type ) that should contain the offset  for example 3  or -5

 

ITInge_0-1611184878425.png

 

Then I create a custom column based on my UTC column

 

ITInge_1-1611185031456.png

I'm stucked here on how can I link the offset number and UTC column to get the right date format in correct timezone ?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ITInge,

I think you can add a user table that includes the user and date timezone offsets, then you can add a new column to your date table to calculate correspond datetime based on current date time fields and user timezone offset.

If you do not have these timezone offsets, you can also use the query parameter and 'datetime.addzone' function to change datetime based on timezone parameters..

DateTime.AddZone 
Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ITInge,

I think you can add a user table that includes the user and date timezone offsets, then you can add a new column to your date table to calculate correspond datetime based on current date time fields and user timezone offset.

If you do not have these timezone offsets, you can also use the query parameter and 'datetime.addzone' function to change datetime based on timezone parameters..

DateTime.AddZone 
Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

date formats and time zones have nothing to do with each other. 

 

Can't you leave the format rendering up to the users' locale settings?

Ok what I mean here by date format is the right time for the user . 

How can I be sure that the user will see the dates in his local time zone ? 

For information user will only have access to embedded dashboard

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.