Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karahs
Partner - Creator
Partner - Creator

Null values in dimension

Hello,

I want AC BC as dimension but getting null values .

Here is the following code i have used and the result which m getting:

[Sheet1]:

LOAD

[Sr. No],

[Date of Receipt],

    Date(Date#([Date of Receipt], 'dd MMM yyyy hh:mm:ss:fff'), 'M/d/yyyy hh:mm:ss tt') as new_Date,

table1:

Load

[Sr. No],

[Date of Receipt],

    new_Date,

    month(new_Date) as new_month,

    Resident [Sheet1];

    Drop Table [Sheet1];


Table5:

Load*Inline

[new_month,Check

Jul,BC

Aug,BC

Sep,BC

Oct,BC

Nov,BC

Dec,AC

Jan,AC

Feb,AC

Mar,AC

Apr,AC];

image.png

Can anyone suggest whats going wrong ?

Thanks in advance!!

7 Replies
Chanty4u
MVP
MVP

did u chk the filter  seperatly for   New_month?  are you getting values for that or not  ?

tresesco
MVP
MVP

Check in a list box how if your new_Date field coming left-aligned or right-aligned. If left-aligned; it is not parsed properly to get a date field and month() is not working on that. You have to look into your [Date of Receipt] field carefully and parse it properly using date#().

Karahs
Partner - Creator
Partner - Creator
Author

When i put list box for new_month,i get double months one in left align and other in right align. Can u suggest anyway?

Thanks!!

tresesco
MVP
MVP

What about new_Date field? Month field is association looks to be the issue. Try like:

Table5:

Load

     month( date#(new_month, 'MMM')) as new_Month,

     Check   

Inline

[new_month,Check

Jul,BC

Aug,BC

Sep,BC

Oct,BC

Nov,BC

Dec,AC

Jan,AC

Feb,AC

Mar,AC

Apr,AC];

Karahs
Partner - Creator
Partner - Creator
Author

if i take new_Date getting all values in right align .

tresesco
MVP
MVP

Try the solution I suggested above.

Chanty4u
MVP
MVP

try this

month(Date#(field,'MMM'))  as  NewMonth