LockeGarmin
Active Member
- Joined
- Sep 11, 2015
- Messages
- 350
The Power Query page on Date.ToText (https://msdn.microsoft.com/en-us/library/mt253497.aspx) shows that you can use an optional parameter 'format' so you can represent dates as "yyyy/MM/dd". I've been trying to figure out how to get the quarter by using "QQ" or "qq" but neither of these have been working. This page tries to refer you to the "Library specification document" which I would assume is the PDF at this link (https://msdn.microsoft.com/en-us/library/mt807488.aspx) but I cannot seem to find a definitive list of what all 'formats' can go into the format parameter either in this document or on the web. Does anyone happen to know if that list exists somewhere that I can reference?
Since I can't seem to do quarters with Date.ToText I've instead opted to use the less elegant solution below so I'm not really stuck on that part, I just find it really strange that I can't find that documentation reference on the page.
Since I can't seem to do quarters with Date.ToText I've instead opted to use the less elegant solution below so I'm not really stuck on that part, I just find it really strange that I can't find that documentation reference on the page.
Code:
each Number.ToText(Date.QuarterOfYear(_),"00")