Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
bill_mtc
Partner - Creator
Partner - Creator

How to export each rows from straight table to text file?

Hi everyone!

I have this macro development, I need to export each rows from straight table to text file, depending on the remarks...

Sample data below:

IDNAMEAMOUNTREMARKS
1Leroy100007Qualified
2George50008Not Qualified
3Bill890027Qualified
4Scottie8922Not Qualified
5Ringer19800Qualified
6LG67882Qualified

If above data will be the basis, following are instructions:

  1. Extract each row into text file, name the text file according to each ID
  2. Extract only rows of data if REMARKS is "Qualified"
  3. Expected total number of extracted textfile is 4.

Looking forward for your ideas..

Regards,

Bill

1 Solution

Accepted Solutions
bill_mtc
Partner - Creator
Partner - Creator
Author

To all readers, fortunately, I was able to solve this problem. Please find attached files for your reference!

PSEUDOCODES:

  1. Check if file destination is exist
  2. If No, then Exit
  3. If Yes, then Check if row data is Qualified to export to text file
  4. If Qualified, then create each row a text file
  5. If Not Qualified, then loop or continue next record

View solution in original post

1 Reply
bill_mtc
Partner - Creator
Partner - Creator
Author

To all readers, fortunately, I was able to solve this problem. Please find attached files for your reference!

PSEUDOCODES:

  1. Check if file destination is exist
  2. If No, then Exit
  3. If Yes, then Check if row data is Qualified to export to text file
  4. If Qualified, then create each row a text file
  5. If Not Qualified, then loop or continue next record