cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mvanwill Frequent Visitor
Frequent Visitor

Creating Date table school year

Hello,

 

I would like to make a date table wher I have a column to select the school year. The output should be "13/14". I can create begin year and the eind year. Here is the example:

 

Date =
ADDCOLUMNS (
CALENDAR (DATE(2014;1;1); DATE(2025;12;31));
"DateAsInteger"; FORMAT ( [Date]; "YYYYMMDD" );
"Jaar"; FORMAT ( [Date]; "YYYY" );
"Maand"; FORMAT ( [Date]; "MM" );
"Jaar-Maand"; FORMAT ( [Date]; "YYYY/MM" );
"Jaar-Maand kort"; FORMAT ( [Date]; "YYYY/mmm" );
"Maand-kort"; FORMAT ( [Date]; "mmm" );
"Maand-Lang"; FORMAT ( [Date]; "mmmm" );
"Dagnummer"; WEEKDAY ( [Date] );
"Weekdag"; FORMAT ( [Date]; "dddd" );
"Weekdag-kort"; FORMAT ( [Date]; "ddd" );
"Kwartaal"; "Q" & FORMAT ( [Date]; "Q" );
"Jaar kwartaal"; FORMAT ( [Date]; "YYYY" ) & "-Q" & FORMAT ( [Date]; "Q" );
"Schooljaar Begin"; if(month([Date])<8;YEAR([date])-1 ;YEAR([Date]));
"Schooljaar Eind"; if(month([Date])<8;YEAR([date]) ;YEAR([Date])+1)
)
 
I would like to combine the output to for example "13/14". The year starts in August and ends in July the next year.
 
What is the best solution?
 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Creating Date table school year

@mvanwill it is like creating a fiscal calendar. and there are many posts on it. Here is link to one

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
Super User
Super User

Re: Creating Date table school year

@mvanwill it is like creating a fiscal calendar. and there are many posts on it. Here is link to one

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 6 members 2,574 guests
Please welcome our newest community members: