Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
BenGielen
Contributor III
Contributor III

How can I multiply the value of the current week by a number?

Hello together,

i have a question. I want to multiply the number of the actual week with a fix value. 

For example:

WeekNo. 30 x 150000 = 4,5M

the result should be a target for a diagramm. 

is there anyone who can help me to solve this?

 

1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi Ben,

Try this:

let vFixedValue = 150000

Table:
Load
   WeekNo * $(vFixedValue) as Value
   WeekNo
From [YourSource] (qvd)
;

Or if you don't want to do it in a script, use this formula in a table and create the variable in the variable overview:

let vFixedValue = 150000

Measure: WeekNo * $(vFixedValue)

Jordy

Climber

Work smarter, not harder

View solution in original post

2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Ben,

Try this:

let vFixedValue = 150000

Table:
Load
   WeekNo * $(vFixedValue) as Value
   WeekNo
From [YourSource] (qvd)
;

Or if you don't want to do it in a script, use this formula in a table and create the variable in the variable overview:

let vFixedValue = 150000

Measure: WeekNo * $(vFixedValue)

Jordy

Climber

Work smarter, not harder
BenGielen
Contributor III
Contributor III
Author

Thank you for your fast support. It works.