Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a table called milestones which contains all milestones for all projects. I need to create a report that shows the information in the following way :
If the milestone is not found then 'N/A' should be in the table. The script I've tried is
But when I try and put this in a table I get results like this:
How do I get them all on the same row in the table?
I'll also need to do some calcs based on actual completion date vs the milestone deadline date - how is best to approach this?
I have a separate Projects table which would be ideal to have this information in instead of using the milestones table but without using lots of apply maps I'm not sure how to do this (currently the projects table is joined via another table so a direct link won't work as I get a circular reference).
Projects connects to Tasklists via the Project ID
Tasklists are connected to milestones via the MilestoneID
Milestones list also contains the Project ID but this is called MilestonesProjectID and is stored in the Milestones file
Any guidance appreciated!
You will want to use the script GENERIC Load prefix for this. Here's an example
https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/
-Rob
Hi Rob,
Currently I'm left joining some of the milestone table fields to my project table, if I use generic load I get an illegal combination?
If I were to use the generic load on my original table would that alter the structure and affect other reports / tables I already have charted?
Thanks
I doubt that I would tend to pivot the dates within the data-model else keeping the main-structure as it is - at least not get information like the offset between the milestones and/or to today() and/or their overall min/max and/or their count and similar stuff.
A single mapping-table which combined the project and the milestone as lookup-key would be enough and then n applymap-calls could fetch the wanted information and evaluating it against the calling record (adding them as n parallel fields would be also possible).
Further ways respectively applying them in combination with the mapping may be to concat() the milestones and/or the dates into a string and then picking the wanted information with subfield() or similat string-functions. Another possibility is to use interrecord-functions like previous() and peek() within a sorted resident-load and access the information from the other records.
To address the 'N/A' requirement for missing information I would populate the records and adding them per concatenate to the facts.
Can you post a screenshot of your data model as it now stands?
-Rob
Some Sample data would be a good starting point for us.
Hi Rob here's the cut down view of the model, Milestones are always attached to tasklists, this may be one or more. A tasklist can only be linked to one milestone though.
Hi Marcus, could you give me an example of what you mean?
From reading your response it seems I need to
1. Create a table with the fields in from the milestone table and the project?
2. Use apply map in the projects table to pull the information across?
Thanks
It might be starting with something like: