Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fatihtomruk
Contributor III
Contributor III

Pivot Particial Sum Mistake

Hi All,

I have a pivot table and some values as shown below. I have made Show Particial Sum from Presentation tab.

But ifit is possible, I want to not sum if value is zero at Sum2.

So My Total sum at Sum1 must be 1200, not 1500.

Is it possible? Could you please help me.

Thank you in advance.

Capture.PNG

Fatih,

Best Regards.

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Faith,

You have to write this formula in following way

Dimension:- a

Expression 1(Sum1):- If(Dimensionality() = 0, Sum({<a = {"=Sum(Sum2) <> 0"}>} Sum1), Sum(Sum1))

Expression  2(Sum2):- sum(Sum2)

Please find attached QVW for more details.

Thanks,

View solution in original post

6 Replies
sunny_talwar

May be like this

If(Dimensionality() = 0, Sum({<a = {"=Sum(Sum2) <> 0"}>} Sum1), Sum(Sum1))

fatihtomruk
Contributor III
Contributor III
Author

Thank you Sunny,

But where can I write this formula? I have written to the Expression but it is wrong as below.

Capturea.PNG

Anonymous
Not applicable

Hi Faith,

You have to write this formula in following way

Dimension:- a

Expression 1(Sum1):- If(Dimensionality() = 0, Sum({<a = {"=Sum(Sum2) <> 0"}>} Sum1), Sum(Sum1))

Expression  2(Sum2):- sum(Sum2)

Please find attached QVW for more details.

Thanks,

Anil_Babu_Samineni

Take Dimension as a and Use Expression for

Dim

a

Expressions

Sum1 -- If(Dimensionality() = 0, Sum({<a = {"=Sum(Sum2) <> 0"}>} Sum1), Sum(Sum1))

Sum2 -- Sum(Sum2)

And check, It seems this

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

Hi Faith,

Above formula will give you following result:

aSum1Sum2
A65030
B3000
C20010
D35020
Total120060

Thanks,

fatihtomruk
Contributor III
Contributor III
Author

Thank you all of you. It works. Well-done