The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello guys,
I'm looking for a solution, if is possible, for datetime. I do have a report which shows the sales datetime and the datetime is in GMT.
I would the end user, based in Germany and in Greece, to see the datetime according to his country time.
See below example:
if a sale is done on 09/05/2020 16:00 GMT time, the German user should see this sale at 09/05/2020 18:00 and the Greek one at 09/05/2020 19:00.
Is it possible?
Kind regards
Solved! Go to Solution.
Hi @Anonymous ,
I agree with what suggested by @parry2k ,it's really not an easy thing to realize as you wish.My suggestion is to create 2 columns showing the 2 datetime(German and Greek) together.Or you can create 2 pages pointing to different groups of users...
Hi @Anonymous ,
I agree with what suggested by @parry2k ,it's really not an easy thing to realize as you wish.My suggestion is to create 2 columns showing the 2 datetime(German and Greek) together.Or you can create 2 pages pointing to different groups of users...
You can do this by using the Parameter Table pattern https://www.daxpatterns.com/parameter-table/
You can make a parameter table of your users. In that table include the offset in hours from GMT.
Then, any place on your report you want to display a date/time, use a measure. That measure will get the selected user from the parameter table and lookup their offset and use that to calculate what time to display.
If you need examples for the DAX let me know and I'll do a small sample.
Help when you know. Ask when you don't!
@Anonymous , refer if this can help
https://support.helpshift.com/kb/article/how-do-i-set-my-timezone-in-power-bi/
https://www.poweredsolutions.co/2019/10/21/handling-different-time-zones-in-power-bi-power-query/
https://community.powerbi.com/t5/Service/changing-timezone-of-powerbi-service/td-p/153663
@Anonymous I don't think it is possible out of the box, you need to build logic in your data model to identify which user is viewing the report and somewhere store the time offset of the user and adjust the dates accordingly. It is not that straight forward as it looks like, the bottom line is there is nothing out of the box to switch time offset based on a user who is viewing the report.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
97 | |
80 | |
62 | |
57 |
User | Count |
---|---|
264 | |
120 | |
115 | |
83 | |
70 |