Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

How to hide dimension vallues and just show the Totals Row in Straight Table?

Hi all,

I have the following straight table:

How can I hide the Dimension values so it only shows Total Sales and the total value. I.e. Hide the text and values you see in white?

Dimension = DivisionName

Expression: Sum(LineSalesAmount)

Anyone know how?

4 Replies
Anil_Babu_Samineni

If you really want to hide dim then why do you creating the Straight Table.

You can create script like Sum(LineSalesAmount) as Sales and then take sales in your object.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vishsaggi
Champion III
Champion III

As Anil said you can use that in the script. However, if you really want to hide the dim's then use this:

Dim: = 'Totals'

Expr: = Sum(Total LineSalesAmount)

Then check radio buttion No Totals in the expression tab.

sunny_talwar

vishsaggi‌ -

Although adding TOTAL won't do any harm, but the Sum(LineSalesAmount) should work here as well.

Another option is

Dimension:

DivisionName

Expression:

=If(Dimensionality() = 0, Sum(LineSalesAmount))

Capture.PNG

vishsaggi
Champion III
Champion III

True. Thanks sunny for that. Got it.