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
Gurukiran003
Frequent Visitor

undefined

why calendar visual MAQ Software is showing one day less. example if start date is 1-2-2020 to 3-2-2020 then while showing in visuals its showing 1-2-2020 to 2-2-2020

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

Hi @Gurukiran003 ,

 

Oh yes! Sorry I didn't notice this.

But as shown in the screenshot I provided, the endDate is always 1 day less than the actual date. Based on my test, it depends on the Time. 

 

For example as shown below, if enddate is 2021/2/3 12PM >12AM ,then 2021/2/3 will be included. 

but for datetime=2021/2/6 12 AM, then 2021/2/5 will be the actual enddate.

DateTime type.PNG

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
MAQSupport
Solution Supplier
Solution Supplier

Hello,

 

For formatting start and end date, you need to consider the following as these are unfortunately the limitation of the API used to render the Calendar visual:

  1. When only date (not date time) is provided as End date to the visual, it takes the end time for the event as 12:00 am and hence, the event ends on the previous day. For example, when date is 29/1/2019, by default it takes 29/01/2019 12:00 AM as its end date time.
  2. If an event lasts for more than a day and the start and end times are before 9 AM, then the end date of the event in the visual will be a day before the end date given in the data. Tooltip will represent the date and time as per the data passed.

Let us know if it meet your requirements and revert back in case of any further issues

v-eqin-msft
Community Support
Community Support

Hi @Gurukiran003 ,

 

Oh yes! Sorry I didn't notice this.

But as shown in the screenshot I provided, the endDate is always 1 day less than the actual date. Based on my test, it depends on the Time. 

 

For example as shown below, if enddate is 2021/2/3 12PM >12AM ,then 2021/2/3 will be included. 

but for datetime=2021/2/6 12 AM, then 2021/2/5 will be the actual enddate.

DateTime type.PNG

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-eqin-msft
Community Support
Community Support

Hi @Gurukiran003 ,

 

Sorry I'm not fully understand your issue...

 

I have built a data sample, and everything works fine on my side. My PBI version is 2.95.983.0 64-bit (July 2021) ,you may upgrade to this version and have a try again.

calendar visual MAQ Software.PNG

Could you please provide some screenshots to help us clarify your scenario?

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Eyeln u can see the start day for A is monday-1,Feb,2021 and End Date is Wednesday-3,Feb,2021 but in Visual blue color is applied from 1,Feb,2021 to 2,Feb,2021 thats what i am trying to say.

 

Hello,

Thanks for reaching out.

For formatting start and end date, you need to consider the following as these are unfortunately the limitation of the API used to render the Calendar visual:

  • When only date (not date time) is provided as End date to the visual, it takes the end time for the event as 12:00 am and hence, the event ends on the previous day. For example, when date is 29/1/2019, by default it takes 29/01/2019 12:00 AM as its end date time.
  • If an event lasts for more than a day and the start and end times are before 9 AM, then the end date of the event in the visual will be a day before the end date given in the data. Tooltip will represent the date and time as per the data passed.

Let us know if it meets your requirements and revert back in case of any further issues

 

Thanks

MAQ Support

amitchandak
Super User
Super User

@MAQSupport , can you help on this

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.