Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distinct values in Dimension

Hi,

  I am not getting distinct Values in dimension - Line chart.

I have attached the .qvw - In tat look the second line chart I want to display PercentageofClaim for every YYYYMM. I think I have done some mistake in table joining..Please help me out!!!

4 Replies
tresesco
MVP
MVP

Try calculated dimension(or, similarly at the script) like:

MonthName(YearMonth)

PFA

jyothish8807
Master II
Master II

Hi Lathaa,

Try:

Load Distinct Date(Yourfield,'YYYYDD') as Yeardate

resident table;

Hope it works.

Regards

KC

Best Regards,
KC
rrsrini2907
Creator
Creator

Hi,

The actual problem is, the BOLEndDate is not converted to the month year. If you convert the YearMonth, it will give the actual date.

So kindly follow the below function to create YearMonth field in line 6 in Main 2 tab.

"Date(MonthStart(YearMonth),'YYYYMM')"

This will solve your problem.

Regards,

Srini.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this script

Actual_Temp:

LOAD TotalSumInsured_USD,

     LossEstimate_USD,  

     SumInsured,

     LossEstimate,

     Date(MonthStart(BOLEndDate),'YYYYMM') as YearMonth

FROM

(ooxml, embedded labels, table is SeaModeVarSectTest2);

Final:

LOAD YearMonth,

  Sum(TotalSumInsured_USD) as AS ,

     Sum(LossEstimate_USD) as AL ,  

     Sum(SumInsured) as PS,

     Sum(LossEstimate) as PL

Resident Actual

Group by YearMonth;

Drop table Actual;

Regards,

Jagan.