Forum Discussion
Calendar Table only in Months
Hi,
I'm pretty new to building things using DAX, so am struggling with some programming syntax...
I've built a table to recognise months, quarters and years for our financial year. It would work perfectly except I can't use the Periods (which Accounting use as their unit for allocating transactions to time) as a Key field as it's not unique. I though the easy answer would be to simply create a table which runs months instead of a daily calendar, however I'm struggling to make that work.
Here's what works for the table:
Hi Anonymous
To get distinct Period, create a new table
Table 2 = SUMMARIZE('Table','Table'[Period],'Table'[Financial Year],'Table'[Financial quarter],'Table'[Financial month],'Table'[Month Year(Actual)])Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
9 Replies
- v-juanli-msft
Community Support
Hi Anonymous
To get distinct Period, create a new table
Table 2 = SUMMARIZE('Table','Table'[Period],'Table'[Financial Year],'Table'[Financial quarter],'Table'[Financial month],'Table'[Month Year(Actual)])Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Hi Maggie,
You're a star!! Thanks for that. I'd been trying to use a second table but was doing it all wrong.
- AnonymousNot applicable
Oh, I had a search and saw 2 posts that looked like they could have helped but didn't solve this one...
- AnonymousNot applicable
Thanks amiitchandek, I had read through that and couldn't get that to make the difference to my coding. I'm not sure whether I'm not doing it right or whether three's a different solution but that didn't give me the required end result.
- AnonymousNot applicable
After some effort and thought. I can get the linked example to work, however as soon as I try to shift to meet a financial year it all goes somewhat wrong. The columns I need are:
Period - This is linked to our financial year and in the format 201901 (year month) I need this to be unique values
Financial Quarter - Year and Quarter (19Q1)
Month - Name
Accounting Year - split years 18/19
Month Year - month followed by the calendar year (Aug 19)
Our financial year is 1 August to 31 July and I have successfully built a table that built that but I can't link by the right factor. Unfortunately our Finance Department use Period to determine where costs are placed and the transaction dates can be misleading. I am never going to get that changing so much report differently.