Variance between 2 columns in a Pivot Table
Hello,
We have an analysis that is a Union of 2 analysis. It has two result columns in the Union, each column have a value of one month. We have to create a third column with the variance between the second and first column.
We are using a Pivot Table and creating a New Calculated Item in the month column with difference between the columns ($2 - $1). But this results in four different columns - The 2 original ones and the difference repeated (for each month).
Pls. is there a way to build the pivot table the way we need it ? with just the 3rd column as a variance result.
Txs for any help.
Antonio
You may get the logical query as below
SELECT saw_0, saw_1, FROM (
(SELECT A saw_0, B saw_1 FROM "SA" )
UNION
(SELECT C saw_0, D saw_1 FROM "SA" )
) t1 ORDER BY saw_0
I would suggest to create another column at first line of SELECT so that you can use those saw_0, saw_1 columns to get another column something like
SELECT saw_0, saw_1, saw_0+saw_1 FROM (
(SELECT A saw_0, B saw_1 FROM "SA" )
UNION
(SELECT C saw_0, D saw_1 FROM "SA" )
) t1 ORDER BY saw_0
This is just a hint you need to put in your requirements
if make sense mark :)
Edited by: Srini VEERAVALLI on May 14, 2013 10:35 AM
Similar Messages
-
How do I make a header column in a pivot table a field from the table
I am trying to reference a field for a header column in a pivot table. for example: 2006 - Cat, 2006-Dog
I am trying to get the following result:
2006-Cat January February March April May June July August September October November December Totals
Euthanise 159 203 188 252 376 501 393 315 304 276 212 207 3386
Intake 192 220 234 305 412 538 409 330 329 305 244 241 3759
Redeem 10 4 4 3 5 3 2 1 2 1 2 5 42
Rescue 0 0 2 10 0 0 0 1 0 2 0 4 19
2006-Dog January February March April May June July August September October November December Totals
Euthanise 306 375 347 341 458 484 385 441 317 384 325 318 4481
Intake 455 514 495 465 571 595 486 570 438 511 434 473 6007
Redeem 65 63 57 34 57 43 58 46 58 67 53 59 660
Rescue 0 0 0 1 0 0 0 0 3 1 0 0 5
2007-Cat January February March April May June July August September October November December Totals
Euthanise 223 265 229 275 569 508 451 359 310 318 231 225 3963
Intake 268 286 274 315 594 567 488 397 329 344 279 249 4390
Redeem 11 7 11 1 5 2 0 2 4 3 16 2 64
Rescue 7 0 0 1 0 1 2 1 1 0 1 0 14
2007-Dog January February March April May June July August September October November December Totals
Euthanise 436 374 313 343 395 362 422 403 394 350 275 343 4410
Intake 594 510 480 477 508 520 553 502 509 544 410 480 6087
Redeem 67 72 77 57 47 51 50 40 41 62 45 45 654
Rescue 2 3 0 1 0 0 4 0 3 0 1 1 15
Any help is greatly appreciated.<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <ROW>
<header>2006 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Euthanise</cue>
<anicnt>159.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Intake</cue>
<anicnt>192.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Redeem</cue>
<anicnt>10.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Euthanise</cue>
<anicnt>203.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Intake</cue>
<anicnt>220.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Redeem</cue>
<anicnt>4.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Euthanise</cue>
<anicnt>188.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Intake</cue>
<anicnt>234.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Redeem</cue>
<anicnt>4.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Rescue</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Euthanise</cue>
<anicnt>252.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Intake</cue>
<anicnt>305.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Redeem</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Rescue</cue>
<anicnt>10.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Euthanise</cue>
<anicnt>376.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Intake</cue>
<anicnt>412.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Redeem</cue>
<anicnt>5.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Euthanise</cue>
<anicnt>501.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Intake</cue>
<anicnt>538.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Redeem</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Euthanise</cue>
<anicnt>393.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Intake</cue>
<anicnt>409.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Euthanise</cue>
<anicnt>315.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Intake</cue>
<anicnt>330.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Redeem</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Euthanise</cue>
<anicnt>304.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Intake</cue>
<anicnt>329.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Euthanise</cue>
<anicnt>276.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Intake</cue>
<anicnt>305.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Redeem</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Rescue</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Euthanise</cue>
<anicnt>212.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Intake</cue>
<anicnt>244.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Euthanise</cue>
<anicnt>207.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Intake</cue>
<anicnt>241.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Redeem</cue>
<anicnt>5.0</anicnt>
</ROW>
- <ROW>
<header>2006 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Rescue</cue>
<anicnt>4.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Euthanise</cue>
<anicnt>306.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Intake</cue>
<anicnt>455.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Redeem</cue>
<anicnt>65.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Euthanise</cue>
<anicnt>375.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Intake</cue>
<anicnt>514.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Redeem</cue>
<anicnt>63.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Euthanise</cue>
<anicnt>347.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Intake</cue>
<anicnt>495.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Redeem</cue>
<anicnt>57.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Euthanise</cue>
<anicnt>341.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Intake</cue>
<anicnt>465.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Redeem</cue>
<anicnt>34.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Euthanise</cue>
<anicnt>458.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Intake</cue>
<anicnt>571.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Redeem</cue>
<anicnt>57.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Euthanise</cue>
<anicnt>484.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Intake</cue>
<anicnt>595.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Redeem</cue>
<anicnt>43.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Euthanise</cue>
<anicnt>385.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Intake</cue>
<anicnt>486.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Redeem</cue>
<anicnt>58.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Euthanise</cue>
<anicnt>441.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Intake</cue>
<anicnt>570.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Redeem</cue>
<anicnt>46.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Euthanise</cue>
<anicnt>317.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Intake</cue>
<anicnt>438.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Redeem</cue>
<anicnt>58.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Rescue</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Euthanise</cue>
<anicnt>384.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Intake</cue>
<anicnt>511.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Redeem</cue>
<anicnt>67.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Euthanise</cue>
<anicnt>325.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Intake</cue>
<anicnt>434.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Redeem</cue>
<anicnt>53.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Euthanise</cue>
<anicnt>318.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Intake</cue>
<anicnt>473.0</anicnt>
</ROW>
- <ROW>
<header>2006 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Redeem</cue>
<anicnt>59.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Euthanise</cue>
<anicnt>223.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Intake</cue>
<anicnt>268.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Redeem</cue>
<anicnt>11.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Rescue</cue>
<anicnt>7.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Euthanise</cue>
<anicnt>265.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Intake</cue>
<anicnt>286.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Redeem</cue>
<anicnt>7.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Euthanise</cue>
<anicnt>229.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Intake</cue>
<anicnt>274.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Redeem</cue>
<anicnt>11.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Euthanise</cue>
<anicnt>275.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Intake</cue>
<anicnt>315.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Redeem</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Euthanise</cue>
<anicnt>569.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Intake</cue>
<anicnt>594.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Redeem</cue>
<anicnt>5.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Euthanise</cue>
<anicnt>508.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Intake</cue>
<anicnt>567.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Euthanise</cue>
<anicnt>451.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Intake</cue>
<anicnt>488.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Rescue</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Euthanise</cue>
<anicnt>359.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Intake</cue>
<anicnt>397.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Euthanise</cue>
<anicnt>310.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Intake</cue>
<anicnt>329.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Redeem</cue>
<anicnt>4.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Euthanise</cue>
<anicnt>318.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Intake</cue>
<anicnt>344.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Redeem</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Euthanise</cue>
<anicnt>231.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Intake</cue>
<anicnt>279.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Redeem</cue>
<anicnt>16.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Euthanise</cue>
<anicnt>225.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Intake</cue>
<anicnt>249.0</anicnt>
</ROW>
- <ROW>
<header>2007 - CAT</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Redeem</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Euthanise</cue>
<anicnt>436.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Intake</cue>
<anicnt>594.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Redeem</cue>
<anicnt>67.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>January</MNTH>
<imonth>1</imonth>
<cue>Rescue</cue>
<anicnt>2.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Euthanise</cue>
<anicnt>374.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Intake</cue>
<anicnt>510.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Redeem</cue>
<anicnt>72.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>February</MNTH>
<imonth>2</imonth>
<cue>Rescue</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Euthanise</cue>
<anicnt>313.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Intake</cue>
<anicnt>480.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>March</MNTH>
<imonth>3</imonth>
<cue>Redeem</cue>
<anicnt>77.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Euthanise</cue>
<anicnt>343.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Intake</cue>
<anicnt>477.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Redeem</cue>
<anicnt>57.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>April</MNTH>
<imonth>4</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Euthanise</cue>
<anicnt>395.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Intake</cue>
<anicnt>508.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>May</MNTH>
<imonth>5</imonth>
<cue>Redeem</cue>
<anicnt>47.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Euthanise</cue>
<anicnt>362.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Intake</cue>
<anicnt>520.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>June</MNTH>
<imonth>6</imonth>
<cue>Redeem</cue>
<anicnt>51.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Euthanise</cue>
<anicnt>422.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Intake</cue>
<anicnt>553.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Redeem</cue>
<anicnt>50.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>July</MNTH>
<imonth>7</imonth>
<cue>Rescue</cue>
<anicnt>4.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Euthanise</cue>
<anicnt>403.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Intake</cue>
<anicnt>502.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>August</MNTH>
<imonth>8</imonth>
<cue>Redeem</cue>
<anicnt>40.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Euthanise</cue>
<anicnt>394.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Intake</cue>
<anicnt>509.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Redeem</cue>
<anicnt>41.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>September</MNTH>
<imonth>9</imonth>
<cue>Rescue</cue>
<anicnt>3.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Euthanise</cue>
<anicnt>350.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Intake</cue>
<anicnt>544.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>October</MNTH>
<imonth>10</imonth>
<cue>Redeem</cue>
<anicnt>62.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Euthanise</cue>
<anicnt>275.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Intake</cue>
<anicnt>410.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Redeem</cue>
<anicnt>45.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>November</MNTH>
<imonth>11</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Euthanise</cue>
<anicnt>343.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Intake</cue>
<anicnt>480.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Redeem</cue>
<anicnt>45.0</anicnt>
</ROW>
- <ROW>
<header>2007 - DOG</header>
<MNTH>December</MNTH>
<imonth>12</imonth>
<cue>Rescue</cue>
<anicnt>1.0</anicnt>
</ROW>
</ROWSET> -
Hiding a measure column in a pivot table in BI Answers
Hi,
I need a report to have a hierachical format such as:
Top Company
Middle Company
Customer Name Customer Id Customer Creation Date
To achieve this, I apparently need to add a measure column to the Rows data, but I don't want to show it.
Would anyone know how I can hide a measure column in a pivot table?
Many thanks,
- JennyMeasure Columns can't be hidden like an attribute. How ever you can use custom style sheet for Value and Header Properties to not show the measure.
for the "Custom CSS Style Options (HTML Only)" under measure properties of the column set "Use Custom CSS Style" value to 'display:none'.
Let me know if this worked.
Regards,
Jay -
Resizing Column Width in Pivot Tables
Hi,
Can anyone help with adjusting the size of columns in a pivot table. I have 3 measure across 12 months on a page:
Total Volume Total Margin (%) Total Contribution
Market Jan 2010 Feb 2010 Mar 2010 Apr 2010 May 2010 Jun 2010 Jul 2010 Jan 2010 Feb 2010 Mar 2010 Apr 2010 May 2010 Jun 2010 Jul 2010 Jan 2010 Feb 2010 Mar 2010 Apr 2010 May 2010 Jun 2010 Jul 2010
The months on some measures are rolling up and the others are on one line, can the width of the column be wrapped or adjusted?
ThanksHi,
Yes,it can be.Click on a column and Go to Format Values>Additional Formatting Options>width.Try putting 50%,60% if you want them to expand.
Similiarly Format heading will work for heading size.
You have to play around with this to suit your requirements.
Thanks
Sandeep -
How to re-arrange the columns present in pivot table view in obiee 10?
Can you please tell me How to re-arrange the columns present in pivot table view in obiee 10?
I have columns as 1,2,3,4,6,7, in pivot table view.
I have calculated item (column 5 as summation of 1,2,3,4) and caluclated itme (column 9 as summation of 6,7)...now if i arrange ascending then calculated columns 5,9 don't get affected.
I need the order as 1,2,3,4,5,6,7,9 -
Sorting on a total column or calculated column in a pivot table
We have a pivot table showing customer activity by month. We have added a calculated field to show the YTD average instead of a total column. Is there a way to sort on this calculated field? We have applied a sort on the measure in the criteria, and our resulting pivot table sorts by the values in the most recent month, not by the YTD average.
I think we cant sort when we use a pivot view becoz all the rows are already fixed. Say your rows are sales and volume and columns are year 2007 and 2008, imagine if you r given the sorting ability then if number of units solds is more then it need to change the rows (but in pivot table rows are fixed). So, we cant sort in pivot tables!!
-
How to convert row data into columns without using pivot table?
Hello guys
I have a report that has several columns about sales call type and call counts
It looks like this:
Calls Type Call Counts
Missed 200
Handled 3000000
Rejected 40000
Dropped 50000
Now I wanna create a report that look like this:
Missed call counts Handled Call counts Rejected Counts Drop counts Other Columns
200 300000000 40000 50000 Data
So that I can perform other calculations on the difference and comparison of handled calls counts vs other call counts..
I know pivot table view can make the report look like in such way, but they cant do further calculations on that..
So I need to create new solid columns that capture call counts based on call types..
How would I be able to do that on Answers? I don't have access to the RPD, so is it possible to do it sololy on answers? Or should I just ask ETL support on this?
Any pointers will be deeply appreciated!
Thank youThanks MMA
I followed your guidance and I was able to create a few new columns of call missed count, call handled counts and call abandoned counts.. Then I create new columns of ave missed counts, ave handled counts and so forth..
Then I went to the pivot view, I realized there is a small problem.. Basically the report still includes the column "call types" which has 3 different types of call "miss, abandon and handled". When I exclude this column in my report, the rest of the measures will return wrong values. When I include this column in the report, it shows duplicate values by 3 rows. It looks like this:
Queue name Call types Call handled Call missed Call abondoned
A Miss 8 10 15
A Handled 8 10 15
A Abandoned 8 10 15
in pivot table view, if I move call type to column area, the resulted measures will become 8X3, 10X3 and 15X3
So is there a way to eliminate duplicate rows or let the system know not to mulitply by 3?
Or is this as far as presentation service can go in terms of this? Or should I advice to provide better data from the back end?
Please let me know, thanks -
Include Row/Column Headers in Pivot Table Export to Excel
I am using JDeveloper version 11.1.2.3
I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version?I am using JDeveloper version 11.1.2.3
I am trying to export my pivot table to excel using dvt:exportPivotTableData. I'd like to include column/row headers in the export, but can't seem to find a way to do that. Is there a way to do this in my jdeveloper version? -
Fixing the width of a column in a pivot table.
Hi,
I have a report with a pivot table view.
In that pivot table i have a column called category and a measure called Amount.
My issue is, i need to fix the length of the the measured column to particular extent like $111,111,111,111.11 (Bold) for all the columns.
I went to Format Values for that column and add width=50 in the additional charting options.
But it's not reflecting for all the columns.
Is there any other way to resolve this one.
Thanks,
chinna.Hi,
Thanks for the quick response.
I tried to fix the width of a column by putting 20% ,30% ....suggested by you.But it's not reflecting in the report.
is there any other way?
thanks,
chinna -
Hide/remove column in adf pivot table
Is it somehow possible to hide or to remove column (I need to hide agregate column, but is it possible for regular data cell) dynamically when some conditions are met? I've tried getDataFormat and getheaderFormat methods to set width of the columns to 0, but it doesn't work. Also I've tried to set rawvalue of data cell to null/"" and width to 0 but without success to hide column. Problem applies to adf pivot table 11g.
Thank You!HI,
You have the option for the column as to be suppress or repeat
Go to column properties and go to column format second tab select the option Suppress.
Regards,
VG -
Show differences between identical columns of two different tables
Hi,
I am trying to build an ADF UIX page that takes data from 2 tables. Both of these tables will have matching columns. The requirement is, I need to compare each of the columns within these tables and highlight the differences between the columns. For example, if table 1 has a column x with value 10 and table 2 has a column x with value 20, at runtime, I need to provide a text field for table 2's x column so that the user can change the value to match table 1 or enter a different value.
I need to do this using ADF UIX. Could anyone please help me in achieving this?
Thanks,
Ashokhi
thw solution which you have given that is giving the
cartesian product of all the rows of the all the 3
tables.
1st table-7 rows
2nd table-7 rows
3rd table-7 rows
total rows in result table- 343 rows.
So its not working well..
thanks for ur response.What part of
You might also want a WHERE clause if the tables have more than one row in.did you have a problem with? You provided no information on which any of us could have written a join condition. I assumed you either had only the one row you showed us, or you were planning on coding the join yourself. -
BI - Column number in Pivot Table
Hi, I've a problem.
I'm using pivot table view to show a hierarchy. I want insert all values of expanded hierarchy into a Narrative View, but when I try to get values by '@x' signature in the narrative section, I find only the value of the top element of hierarchy and I can't find any column number for the children of hierarchy.
There is a way to find the column number to show in the narrative view all the element of hierarchy?
Could you help me please?
Thanks
AnnalisaHi,
I too faced such a issue, what version are using it?
fyi, MOS team fixes below bugs with obiee11.1.1.5.5BP also 11.1.1.6.5 BP and above.
bug 12662417 - CALCULATED ITEM DISAPPEARS FROM REPORTS (AFTER APPLYING BUG 12587870PATCH)
bug 13794350 - PIVOT TABLE CALCULATED ITEMS GRAND TOTAL IS NOT CORRECT
bug 13956072 - PROBLEM WITH UNION,PIVOT TABLE,AND NEW CALCULATED ITEMS
Thanks
Deva -
Resize column in a Pivot Table
Hi,
I've a pivot table and one of its columns contains a String that can be very long.
My problem is that if one of the rows has a long string, the column adjust itself to this width and if I want to see the next columns, I need to move the scrool.
I'd like to know if could be possible readjust the width of these column or if I could adjust the width and do something for the text to fit the width.
Thanks in advance.
Marcos.Any ideas?
Thanks -
Inserting static text in between rows returned from a pivot table
Is there a way to type static text (eg. “Note that the data for Land has an accuracy of 98%”) in between rows returned from the dataset in the rtf template. The alternative would be to break the BI analysis report (which is the source of the template data) into 2 parts and then insert each part into the template one below the other with the text typed in between.
Oracle support has confirmed that this requirement is not possible to implement
-
Expand and collapase column values of Pivot table in obiee 11g?
Hi experts,
I have Requirement.
*----------------------(+value1)---(+value2)----(-value3)---------(+value 4)
--------------------------------------------- x---y---z
**col1*-----col2----------------------------------------------------
----abc-------sys-------------------------------------1---3---9*
---xyz--------inc-------------------------------------7---8---77*
----xyz2------inc2------------------------------------7---8---32*
----xyz3------inc3------------------------------------5---08--13*
----xyz4------inc4------------------------------------6---0----72*
----xyz5------inc5------------------------------------4---2----3*
like that i want ...
any suggestions / help..
I hope you understand..
Thanks
Raam
Edited by: Tallapaneni on Jun 16, 2012 5:10 PMi couldnt understand what you mean, can you please describe?
Maybe you are looking for
-
OBIEE 11g - issue when export hierarchy to a csv
Hello, I have an issue when I try to export to a csv file a report containing a Logical Dimension field, when I export just the first level of hierarchy is exported and not all the records. When I export to another format (such as excel) all the reco
-
Billed To: KATHY ARENA USA Order Total: $50.70 Billed To: Visa Item Seller Type Unit Price Mouse Maze Free Game - by Top Free Games - Best Apps, Dog Report a Problem Top Free Games In-App Purchase $6.99 Mouse Maze Free Game - by Top Free Games - Best
-
Flash Video Play Does NOT Display Controls
I am using Flash Pro 8 - putting FLV files in SWF files using Flash Pro 8 and then "publishing" to Html and SWF to a location on my hard drive. When I display the webpage from my Hard Drive from where ever on my hard drive I initially published to fr
-
Skype doesn't login automatically
Hello, My skype app updated automatically to version 5.3.0.65524 a couple of days ago. I just noticed that when I start the app it ask my username and password, something that didn't happened in the past, even when I "close session" on skype. (once
-
Windows 7, Home Edition, version 6.1 service pack 1 Intel 7, with more than 400gb memory available I've now spent more than 32 hours trying to solve this problem, including two phone calls and three chat sessions with Adobe Help Desk. The Help desk