Discussion board where members can get started with Qlik Sense.
How can i get distinct values in below function
Now i am getting duplicate values.
Go to Solution.
Try may be this:
Date(MonthStart(ACT_START_DATE), 'MMM-YY') as ACT_START_MONTHYEAR
Yes your correct how it possible.Same way mee to given.Am i correct.
You given like MonthStart fn.
I don't understand your follow up question, can you explain please
When i given like
Date(ACT_START_DATE, 'MMM-YY') it comming with duplicate records.
But when i give like Date(MonthStart(ACT_START_DATE), 'MMM-YY') it coming without duplicate.
How it possible.MonthStart will remove duplicate ?
Date is just a formatting function and doesn't remove the day from your date just because it is now formatted as MMM-YY. For example
They all look Aug-16, but they are all have different underlying values which you might be able to see if you use Num() function around it.
Now when you use MonthStart, it first finds the Month start value for each of the date and then assigns in the new formatting