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

hi friends i want to create a calendar dased on date field.

HI friends  i want to create a calendar based on date field but the problem is that date field contains only yyyy-mm.

25 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

does this code work on your app?

Date_src:

LOAD

$(Start) + Rowno() -1 as DateId

AUTOGENERATE $(NumOfDays);

Not applicable
Author

it is creating problem while linking..will u pls create sample for me ...

jpenuliar
Partner - Specialist III
Partner - Specialist III

Have a look at attached file.

Not applicable
Author

thank you jonathan ....

Not applicable
Author

did u check the subset ratio....its 1 % in pnl..pls check

jpenuliar
Partner - Specialist III
Partner - Specialist III

That is because your fact table only has dates Mapped to the First Day of the months, where as the Calendar has all the Dates generated. If you want to match the subset ratio, you will have to delete all the other dates except the first of the month.

Since you will only have 24 rows (2014 to 2015 months) you can probably create an xls version of the Master Calendar and manually input data.