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: 
SatyaPaleti
Creator III
Creator III

How To Add Hard coded field to Straight Table

Hi Friends,

I really need a help for following Issue

I am Having a Straight Table. In that I need to show one particular field as a Target. Here is the Detail Requirement

Target_Sample.PNG

I am getting Total. There should be one more column which is followed by Total it is Target.

Target is a Hard coded Column. It Have to show in Straight Table

Here is the excel how I need to show

Target_Excel.PNG

Could you please help on this. Here you can find Sample data and Sample Qvw

Thank you,

Satya Paleti

13 Replies
sunny_talwar

Like this?

Capture.PNG

Expression:

=If(Dimensionality() = 0, 9.2, Avg([Total Sale]))

Enabled Total on the dimension limit tab

Capture.PNG

SatyaPaleti
Creator III
Creator III
Author

Thank you sunny. but it's not working.if we add two or more expressions

sunny_talwar

What are the expressions you are using?

tamilarasu
Champion
Champion

Hi Satya,

Could you please post your script here. I am using personal edition.

sunny_talwar

This is not what you want?

Capture.PNG

sunny_talwar

Here it is Tamil:

LOAD Week,

     [Total Sale],

     [Total Org Id],

     Columns

FROM

[Sample_Data.xls]

(biff, embedded labels, table is Sheet1$);

SatyaPaleti
Creator III
Creator III
Author

Exactly that is what I Require

SatyaPaleti
Creator III
Creator III
Author

could you plzz send ur mail ID

sunny_talwar

So I added another expression and it seems to be working