Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Need to excludes values on date field

Hi!

Please check my loaded data of which month/year field takes value. How calculated dimension be applied to correct this as this goes as a dimension field!. Also appreciate if steps are properly laid down to correct through  number tab!

Thanks

Neville

      Excel used

BRANCHMONTH/YEAR MOTOR NON_MOTORTOT_PREMIUM
RAJanuary-16             100,000 250000               350,000
RAFebruary-16             250,000 300000               550,000
RAMarch-16             350,000 150000               500,000
RAApril-16             450,000 350000               800,000
RAMay-16             500,000 250000               750,000
RAJune-16             583,333 150000               733,333
RAJuly-16             658,333 200000               858,333
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

You can use the Date() function even though it is already have a loaded datefield. So Just use the date function on your datefield which you have already loaded. What format you want and what is the date field name.

= Date(youralreadyloadeddatefield, 'yourformat here')

View solution in original post

12 Replies
Frank_Hartmann
Master II
Master II

whats the expected output?

please give some more precise information about what you want to achieve!

its_anandrjs
Champion III
Champion III

Share some sample data to have a look may be you ask for date field.

vishsaggi
Champion III
Champion III

Correct me are you trying to display your MonthYR as of Excel format like Jul-2016?

May be use this in your calculated dim:

= Date(YourMonthYrField, 'MMM-YYYY')

nevilledhamsiri
Specialist
Specialist
Author

Dear Vishwarath,

Thanks, Your expression for date calculation did work! Does this treatment correct the value shown on the date field already loaded. It seems no. In fact it is the format what you suggested I had used. Like this(March-12). Please advice me on,

Isn't it possible to to adjust the date format on already loaded data?

Like what you propose   = Date(YourMonthYrField, 'MMM-YYYY'), please rewrite all other formats so that I can use them later!

Thanks

Neville

nevilledhamsiri
Specialist
Specialist
Author

Dear Vishwarath,

This is how it appears!

vishsaggi
Champion III
Champion III

You can have many different formats for the Date field. What format you are looking for? And what is the expression you are using for your Date.

= Date(YourdateField, 'DD/MM/YYYY')

OR

= Date(YourdateField, 'MM/DD/YYYY') something like that.

nevilledhamsiri
Specialist
Specialist
Author

What about the already loaded field. Can it be  converted to the same format or need to omit & use the date field made through the expression?

vishsaggi
Champion III
Champion III

You can use the Date() function even though it is already have a loaded datefield. So Just use the date function on your datefield which you have already loaded. What format you want and what is the date field name.

= Date(youralreadyloadeddatefield, 'yourformat here')

nevilledhamsiri
Specialist
Specialist
Author

Thanks Wishwanath very much. I will close the thread!

Neville