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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Nagaraju_KCS
Specialist III
Specialist III

Need help??

Hi Community,

I have one requirement....

suppose i have a Days.. like..

These are my input fields...

Ex:    Start_day                 End_Date

           10                            30

           31                            45

           45                            60                                  Generate Report

If i am click generate report button i want to generate report based on input dates....  Customer and SalesPerson standard fields...

Like this

Custmer            SalesPerson           10-30 days      31-45 Days      45-60 Days       61 to MaxDays

XXX                     AAAA                      10000             2000                  5890                   3300000

ABVB                    ABC                           230             4500                  790                     5000000

is this possible............??

Labels (1)
7 Replies
ashfaq_haseeb
Champion III
Champion III

You need to look at class() function.

Regards

ASHFAQ

Nagaraju_KCS
Specialist III
Specialist III
Author

Hi Ashfaq,

I made that bucket..

but i need input range

Suppose:

Start_Range      End_Range

10                         30

30                        45

50                        80

When i am click Generate Report button i want to generate report

Custmer            SalesPerson           10-30 days      30-45 Days      50-80 Days       81 to MaxDays

XXX                     AAAA                      10000             2000                  5890                   3300000

ABVB                    ABC                           230             4500                  790                     5000000

Hope you understand.................

MarcoWedel
MVP
MVP

please provide sample application

Nagaraju_KCS
Specialist III
Specialist III
Author

Hi Macro,

Please See this link Need Help??

PFA,

Not applicable

Example.

Persona:

LOAD * INLINE [

    Customer, PersonalSales, Days

    Cust1, PersSale1, 10

    Cust1, PersSale1, 40

    Cust1, PersSale2, 100

    Cust1, PersSale2, 11

    Cust2, PersSale3, 58

    Cust2, PersSale1, 22

    Cust2, PersSale2, 16

    Cust2, PersSale2, 30

];

RangeDays:

LOAD * INLINE [

    Star_Days, End_Days, Desc_Days

    10, 30, 10-30 Days

    31, 45, 31-45 Days

    45, 60, 45-60 Days

    61, 100000, 61 to MaxDays

];

left join (RangeDays)

IntervalMatch (Days) LOAD Star_Days, End_Days Resident RangeDays;

RangeDays.JPG.jpg

atte.

Luis Valencia

Nagaraju_KCS
Specialist III
Specialist III
Author

Hi Luis,

But here, based on user input values.....

Not applicable

es lo que buscas?.