web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / DateGrouping by Month ...
Power Pages
Unanswered

DateGrouping by Month returning different results

(0) ShareShare
ReportReport
Posted on by 24
Hi All,
 
I have the following code in my web template. Dategrouping is supposed to return month number(1 to 12) based on the cra3c_gcpayoutmonth column in the below case. Even though i have records for the current month i.e September, its returning 9 and sometimes 8. Not sure what is going wrong. We are nearing Go-Live and this issue is creating lot of tension. Need your help with the same.
 
{% for entity in contact_query.results.entities %}
{% fetchxml PurchaseSummaryQuerys %}
<fetch distinct="false" mapping="logical" aggregate="true" output-format="xml-platform" version="1.0">
<entity name="cra3c_purchasehistory">
<attribute name="cra3c_gcpayoutmonth" alias="year" groupby="true" dategrouping="year" />
<attribute name="cra3c_gcpayoutmonth" alias="month" groupby="true" dategrouping="month" />
<attribute name="cra3c_lbspurchased" alias="value" aggregate="sum" />
<order alias="year" />
<order alias="month" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="cra3c_customernumber" operator="eq" value="{{entity.cra3c_customernumber}}" />
</filter>
</entity>
</fetch>
{% endfetchxml %}
{% endfor %}
 
Thanks in advance
Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    One possibility is different User Timezones for dates that are defined as User Local or that, it is using UTC and you are viewing the data with a non-utc timezone.

  • Verified answer
    Israel_Ramakuri Profile Picture
    24 on at

    Hi Fubar,

    Thank you very much for the insight. Based on your comment i checked the column advanced properties in Dataverse table and found that it is set to User Local. Changed that to Time zone independent and it worked. 

     

    Thanks once again.

  • Israel_Ramakuri Profile Picture
    24 on at

    Hi Fubar,

    Thank you very much for the insight. Based on your comment i checked the column advanced properties in Dataverse table and found that it is set to User Local. Changed that to Time zone independent and it worked. 

     

    Thanks once again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard