RobWunderlich / Qlikview-Components

A library for common Qlikview Scripting tasks
197 stars 99 forks source link

Add monthnr #92

Closed GorumDerVan closed 4 years ago

GorumDerVan commented 4 years ago

HI Rob, I added SET _fMonthnr='[$(_fieldPrefix)$(Qvc.Calendar.v.Field.Monthnr)]'; and Num(Month(Date), '##') as $(_fMonthnr),

in the qvc.qvs. The output is the month as a number which is exactly as needed.

However, the file name is only the _FieldPrefix (for instance 'Stars. ') part.

I duplicate the part for _fMonth. Did I miss something? Thanks

RobWunderlich commented 4 years ago

Could you attach your entire qvc.qvs please.

GorumDerVan commented 4 years ago

QVC.zip

Hi Rob, added in Zip. Github doesn't accept qvs.

Regards Michiel

RobWunderlich commented 4 years ago

Sorry for the delay, just noticed this in the inbox. You need to assign a name for your new field around line 109:

SET Qvc.Calendar.v.Field.Monthnr=MonthNum;

Kind Regards, Rob Wunderlich

On Fri, Mar 27, 2020 at 6:26 AM GorumDerVan notifications@github.com wrote:

QVC.zip https://github.com/RobWunderlich/Qlikview-Components/files/4393726/QVC.zip

Hi Rob, added in Zip. Github doesn't accept qvs.

Regards Michiel

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RobWunderlich/Qlikview-Components/issues/92#issuecomment-604999408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOOPBD676IELHKODMWCIYTRJSSPHANCNFSM4LUAYMJA .