Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is this possible?

I have created the following pivot table with tracks rev & exp compared to budget.  See below:SNAG-14102016024500.png

The expression for pulling the information is:

for Revenue:   =sum({$<Type = {'Revenue'},TC={12},CalYear={2014}>}[Transaction Amount])

for Expenses: =sum({$<Type = {'Expenses'},TC={11},CalYear={2014}>}[Transaction Amount])

Is it possible it have both the Revenue and Expenses in the same expression? 

Below is  what I need this to file to look like:

(I have to export this to excel in order to pull revenue and expenses into a single column)

SNAG-14102016105300.png

1 Solution

Accepted Solutions
JonnyPoole
Employee
Employee

You can try change an expressions to conditionally display revenue or expense using something like this....

if( Type='Revenue',

     sum({$<Type = {'Revenue'},TC={12},CalYear={2014}>}[Transaction Amount]),

     if( Type='Expenses', sum({$<Type = {'Expenses'},TC={11},CalYear={2014}>}[Transaction Amount]) )

)

View solution in original post

2 Replies
JonnyPoole
Employee
Employee

You can try change an expressions to conditionally display revenue or expense using something like this....

if( Type='Revenue',

     sum({$<Type = {'Revenue'},TC={12},CalYear={2014}>}[Transaction Amount]),

     if( Type='Expenses', sum({$<Type = {'Expenses'},TC={11},CalYear={2014}>}[Transaction Amount]) )

)

Not applicable
Author

Thank you very much!