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
user83
Helper II
Helper II

segment option in visualization

Hello ,

 

The segment option in visualization is very convenient, it allows to display the dates desired by the user.

Only problem, this segment takes as date 'the date of the system' https://docs.microsoft.com/fr-fr/power-bi/visuals/desktop-slicer-filter-date-range

while I seek for example to filter on my data the last two weeks, the segment shows me the results for the last two weeks taking into account today's date (so the date of the system) how to force it to take the date of my own data.

 

thank you very much for your Help

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @user83,

So you mean you want relative mode slicer work with your own datetimezone, right? AFAIK, power bi data model does not support timezone info, it only works with general date values. I'd like to suggest you take a look official document limitation list to know more about these:

Use a relative date slicer and filter in Power BI#limitations-and-considerations 

Spoiler

Data models in Power BI don't include time zone info. The models can store times, but there's no indication of the time zone they're in.

The slicer and filter are always based on the time in UTC. If you set up a filter in a report and send it to a colleague in a different time zone, you'll both see the same data. Unless you are in the UTC time zone, you and your colleague must account for the time offset you'll experience.

Notice: switch timezone function in power query not change raw date value. If you want to keep converted date, you need to do calculate with raw data values. (add a new column to use raw date value and timezone offset to get local date value)

Regards,

Xiaoxin Sheng

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

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @user83,

So you mean you want relative mode slicer work with your own datetimezone, right? AFAIK, power bi data model does not support timezone info, it only works with general date values. I'd like to suggest you take a look official document limitation list to know more about these:

Use a relative date slicer and filter in Power BI#limitations-and-considerations 

Spoiler

Data models in Power BI don't include time zone info. The models can store times, but there's no indication of the time zone they're in.

The slicer and filter are always based on the time in UTC. If you set up a filter in a report and send it to a colleague in a different time zone, you'll both see the same data. Unless you are in the UTC time zone, you and your colleague must account for the time offset you'll experience.

Notice: switch timezone function in power query not change raw date value. If you want to keep converted date, you need to do calculate with raw data values. (add a new column to use raw date value and timezone offset to get local date value)

Regards,

Xiaoxin Sheng

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

thank you.

parry2k
Super User
Super User

@user83 can you provide bit more detail when you said "your own date"



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.

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.