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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ruperts
New Member

Date grouping for StartOfMonth / StartOfQuarter / StartOfYear

Hi,

 

I've pulled in some data from Dynamics CRM and am looking to do quarterly/annual reporting.

 

I've converted the Close date of an opportuntity by using

= Date.StartOfMonth([ActualCloseDate])

 

 

This seems to return a string as when it's ordered in a PoweBI chart as the order goes:

01/01/2013

01/01/2014

01/01/2015

01/02/2013

01/02/2014

 

Any ideas?

 

Phase 2 is then to bring back data just for the current month - but I'll worry about that later.

 

Many thanks for any help.

1 ACCEPTED SOLUTION
ruperts
New Member

Solved my own problem..In data tools, click on the field, choose the field, choose hte modeling tab, slect data type.

 

 

View solution in original post

2 REPLIES 2
ruperts
New Member

Solved my own problem..In data tools, click on the field, choose the field, choose hte modeling tab, slect data type.

 

 

Rémi
Resolver III
Resolver III

Hi,

 

I advice you to load your query without modification, it's better to do something like that into your model (once your data are loaded).

If you just load your data, you have one column [ActualCloseDate] (care abouth that, scheduled date are often better than final date in CRM) then you add the other columns :

Month = FORMAT( [ActualCloseDate] , "mmmm")

number Month = MONTH( [ActualCloseDate] ) (sort the [Month] column by this one)

Year = YEAR( [ActualCloseDate] )

Quarter = STAROFQUARTER( [ActualCloseDate] )

... and more

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors