Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all, I can not figure out how to correctly convert the value of the measure in %, as in the example of an Excel table, under the measure I take count(id), I would be grateful for help
I can’t use count(id)/count(total <week> id)
because week -> week(datecreated) & 'week' (' &WeekStart(datecreated) & ' - ' & WeekEnd(datecreated) & ')'
Use a preceding load , in the data load editor
Your load script should be as below
Example
Table name:
SQL
Select X,y,z from somedbtable;
Add a preceding load as below
Table name:
LOAD * , Week(Datefield) as week ;
SQL
Select X,y,z from somedbtable;
Reference
as below,
count(id)/count(total <Status> id)
WEEK is the ROW Dimension in the PIVOT TABLE , then count(TOTAL <WEEK> Measure) will return TOTAL FOR ALL ROWS
STATUS is the COLUMN Dimension in the PIVOT TABLE , then count(TOTAL <STATUS> Measure) will return TOTAL BY COLUMNS
Yes, I realized that I need to use week, since it's not just a field, but -> =week(datecreated) & ' week (' &WeekStart(datecreated) & ' - ' & WeekEnd(datecreated) & ')'
It doesn't work in this case -> count(TOTAL <WEEK> Measure)
Status is the field you need in this case NOT Week
count(id)/count(total <Status> id)
But then I don’t get what I need
Oops my bad, you need to create a Week field in your DataModel,
Sorry, but how can I do this if my script is written in postgresql and this field for week is written in qlik
Use a preceding load , in the data load editor
Your load script should be as below
Example
Table name:
SQL
Select X,y,z from somedbtable;
Add a preceding load as below
Table name:
LOAD * , Week(Datefield) as week ;
SQL
Select X,y,z from somedbtable;
Reference