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: 
sona_sa
Creator II
Creator II

Expression For Compare the QVD Size BY DateTime

Hi,

I want to compare my QVD Size on the Behalf of my Last Execution Reload QVD Time to Current Reload time. How I can I do the same.

Fields - QVD Name / QVD Time and QVD Size are available.

   

FileNameFileSize (KB)FileTime
v_utprep_history_week.qvd2,669,441.286/13/2018 8:34:13 AM
v_utprep_versions.qvd1,887,211.676/13/2018 8:47:33 AM
v_utprep_issue_func_state_hist.qvd140,910.476/13/2018 8:45:40 AM
v_utprep_history_day.qvd65,203.756/13/2018 8:26:58 AM
v_utprep_issue_base_data.qvd24,935.206/13/2018 8:23:17 AM
v_utprep_issue_kpi_data.qvd14,340.466/13/2018 8:27:58 AM
t-20170822.qvw6,817.038/22/2017 4:59:18 PM
v_utprep_elements.qvd5,961.136/13/2018 8:28:32 AM
v_utprep_history_week.qvd2,669,441.286/12/2018 8:34:13 AM
v_utprep_versions.qvd1,887,211.676/12/2018 8:47:33 AM
v_utprep_issue_func_state_hist.qvd627,112.036/12/2018 8:45:40 AM
v_utprep_history_day.qvd370,143.266/12/2018 8:26:58 AM
v_utprep_issue_base_data.qvd347,082.666/12/2018 8:23:17 AM
v_utprep_issue_kpi_data.qvd223,539.926/12/2018 8:27:58 AM
t-20170822.qvw196,836.508/22/2017 4:59:18 PM
v_utprep_elements.qvd3,396.226/12/2018 8:28:32 AM
v_utprep_history_week.qvd2,669,441.286/15/2018 8:34:13 AM
v_utprep_versions.qvd1,887,211.676/15/2018 8:47:33 AM
v_utprep_issue_func_state_hist.qvd627,112.036/15/2018 8:45:40 AM
v_utprep_history_day.qvd370,143.266/15/2018 8:26:58 AM
v_utprep_issue_base_data.qvd347,082.666/15/2018 8:23:17 AM
v_utprep_issue_kpi_data.qvd223,539.926/15/2018 8:27:58 AM
t-20170822.qvw196,836.508/22/2017 4:59:18 PM
v_utprep_elements.qvd140,910.476/15/2018 8:28:32 AM

Please look into and let me any expression for the same.


Regards,

AK

9 Replies
sona_sa
Creator II
Creator II
Author

Any Solution, May I expect from anyone.

Regards,

AK

Miguel_Angel_Baeyens

Assuming the table in your post, what is the outcome you expect?

sona_sa
Creator II
Creator II
Author

Hi

I want when my QVD Size Increase or decrease at the next time reload from the current size or File Time, That QVD Information I need in line graph or bar graph.

Regards,

AK

sona_sa
Creator II
Creator II
Author

Hi Miguel,

Suppose, If I am reloading my application after 4 Hr., So I want the DateTime, Size of QVD, If there is any changes has been done from previous reload.

Means Compare of New QVD Size and Reload Time.

Please help on this. Urgent.

Regards,

AK

vardhancse
Specialist III
Specialist III

Hi,

In order to know the latest time stamp in a QVD use below logic:

**we need to have one primary key and date field in the data source

if isnull(QvdCreateTime('\Fact.qvd')) THEN     //Check if QVD is existing or not, if not then full reload

Sample:

Load

column1,

Date,

Column2

From

(ooxml, embedded labels, table is sheet1) ;

Store Fact into \Fact.qvd;

Drop Table Fact;

ELSE

MaxDate:

LOAD Max(Date_ID) as MaxDateQVD                                                    //Identify Max date from existing QVD

FROM

\Fact.qvd

(qvd);

Let vMaxDate = Date(Peek('MaxDateQVD'));                                           //Variable to load the maxdate from QVD

Drop Table MaxDate;

and then in table use where condition some thing like below:

Sample:

Load

column1,

Date,

Column2

From

(ooxml, embedded labels, table is sheet1) where Date > $(vMaxDate);

Cocatenate(Fact)

Load

column1,

Date,

Column2

From

\Fact.qvd(qvd) where NOT Exists(Primary key);

Store Fact into Fact.qvd;

Draop Table Fact;

END IF;

sona_sa
Creator II
Creator II
Author

Hi Rithi,

Where is sheet1, Can u explain :

Sample:

Load

column1,

Date,

Column2

From (ooxml, embedded labels, table is sheet1) ;

Store Fact into \Fact.qvd;

Drop Table Fact;


Regards,

AK

sona_sa
Creator II
Creator II
Author

Hi Varaha,

Please let me know if I have Original QVD like this :

Summary:

LOAD  [QVD Path],

     [QVD Size (KB)],

     [QVD Time],

     [QVD DateNum],

     [QVD Name],

     [QVD Folder Name]

FROM [$(vPath)*.qvd](qvd);

Data is like - :

Please find the attached Data.xls.

Now I can implement the Comparison between same QVD by Time and Size. in Graph. I want to check what are the QVD is increased or decreased by Current DateTime Reload. Difference between last reload QVD Size and Current Reload QVD Size.

Regards,

AK

sona_sa
Creator II
Creator II
Author

Hi,

Ok, I am explaining :

I have Original QVD like this :

Summary:

LOAD  [QVD Path],

     [QVD Size (KB)],

     [QVD Time],

     [QVD DateNum],

     [QVD Name],

     [QVD Folder Name]

FROM [$(vPath)*.qvd](qvd);

Data is like - :

Please find the attached Data.xls.

Now I have to implement the expression for Comparison between same QVD by Time and Size. in Graph. I want to check what are the QVD is increased or decreased by Current DateTime Reload to previous loaded QVD. Difference between last reload QVD Size and Current Reload QVD Size.

Regards,

AK

sona_sa
Creator II
Creator II
Author

Any Conclusion friends.

Regards,

AK