Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jsk_sathis
Partner - Contributor II
Partner - Contributor II

Passing value from different table to For loop

Hi , 

I need to pass a set of values from a Column say "Reporting date." , which has only the month end dates in it.

Now , I have to filter certain records based on each reporting date and store it as a Qvd .

Use case 1:

Data:

Document No

Value

Posting Date

1

727

01.01.2017

2

563

05.01.2017

3

112

15.02.2017

4

816

29.03.2017

5

663

04.04.2017

6

868

09.05.2017

7

491

19.05.2017

8

985

20.06.2017

9

499

11.09.2017

10

968

12.10.2017

11

779

17.11.2017

12

599

21.12.2017

13

195

22.12.2017

14

490

25.12.2017

 

Reporting Date Table

 

Reporting Date
31.01.2017
28.02.2017
31.03.2017
30.04.2017
31.05.2017
30.06.2017
31.07.2017
31.08.2017
30.09.2017
31.10.2017
30.11.2017
31.12.2017

 

I need to pass the values of Reporting Date and fetch the respective Documents No and store it in individual Qvds with respect to each value in Reporting Date.

Kindly suggest your comments .

Thanks,

 

 

 

1 Solution

Accepted Solutions
HirisH_V7
Master
Master

Then you can create a new field in your table like this,

 

Monthend(Posting Date) as ReportingDate 

HirisH
“Aspire to Inspire before we Expire!”

View solution in original post

3 Replies
HirisH_V7
Master
Master

Hi 

I didn't able get your requirement. But i can suggest to use ,

Monthend(Posting Date) as ReportingDate 

Beside bringing it from another table. Also  pl let me know if i am missing anything here.

HirisH
“Aspire to Inspire before we Expire!”
jsk_sathis
Partner - Contributor II
Partner - Contributor II
Author

Hi ,

 

The Data is like this , Reporting date is the only column in a table, based on this date I need to fetch the Document Nos for which its respective Posting date is before the Reporting date.

 

Say for example

Reporting date is 31.01.2017 ( Ref to the table provided)

The result should be like

Document NoValuePosting DateReporting date
179901.01.201731.01.2017
265905.01.201731.01.2017

 

 

Based this data I will have create a trend for Document No for a period.

 

As I don't have any link between Date & Fact Table , I unable to reach the requirement.

 

 

HirisH_V7
Master
Master

Then you can create a new field in your table like this,

 

Monthend(Posting Date) as ReportingDate 

HirisH
“Aspire to Inspire before we Expire!”