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

Pivot Table Substraction

Please find the attached .QVW file.

Query1:-

  I want to remove extra space from Market Value and Demo Value (Pivot Tables) , how can I remove that ?

  Query2:-

  I want to subtract Market Value (300) from Demo Value(1700) i.e. 1700-300=1400 and should display this subtraction below Total as

Net Assets** ("Demo Value-Market Value")=1400

Please help.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Do you like this Approach

Capture.PNG

OR

Capture.PNG

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

View solution in original post

10 Replies
priyasawant
Creator II
Creator II

You can directly write it in the backend

Load *,

Demo Value-Market Value as Net Assets;


Anil_Babu_Samineni

First One this?

Capture.PNG

Second one where you want to see those?

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
Not applicable
Author

I want to display subtraction(1400-300)  below Total value.

Anil_Babu_Samineni

That's fine where you want to show this? KPI ??

If KPI


=Sum({<Level1 -= {'Cash'}>} [Market Value]) - Sum({<Level1 = {'Cash'}>} [Market Value])

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
surendraj
Specialist
Specialist

Please Find the attached one.

May be  this help you!!

Not applicable
Author

Need to display like below.

Capture.JPG

Anil_Babu_Samineni

Do you like this Approach

Capture.PNG

OR

Capture.PNG

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
Not applicable
Author

Thanks Anil for the reply. I am looking for 2nd option which you shown above and m looking for the same.

Please explain below which you wrote in expression.

Sum({<Level1 -= {'Cash'}>}[Market Value])-Sum({<Level1 = {'Cash'}>}[Market Value])

Anil_Babu_Samineni

Sum the [Market Value] where Level1 is not the Cash(Means Remaining) Minus Sum the [Market Value] Where Level1 is Cash(Only Cash)

In fact, I would love to go first option instead of Second one due to moving issue if AJAX Client

I assume, You are happy with that. I would request you to close this thread by marking Help full and Correct Answer so that next lander may understand at a moment

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