Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Crosstab add column with a difference
cennamoc
<p>Hello,<br>
<br><span style="color:#212121;"><span style="font-family:arial, sans-serif;">How can I add a column in a crosstab , with the difference of two columns . </span></span></p>
<p><span style="color:#212121;"><span style="font-family:arial, sans-serif;">Column 1 = 10 </span></span></p>
<p><span style="color:#212121;"><span style="font-family:arial, sans-serif;">Column 2 = 30 </span></span></p>
<p><span style="color:#212121;"><span style="font-family:arial, sans-serif;">Column 3 = 20 </span></span></p>
<p> </p>
<p><span style="color:#212121;"><span style="font-family:arial, sans-serif;">Thanks </span></span></p>
Find more posts tagged with
Comments
micajblock
<p>Right click on one of the measures and and select 'Add Derived Measure'</p>
cennamoc
<blockquote class="ipsBlockquote" data-author="mblock" data-cid="145313" data-time="1473965695">
<div>
<p>Right click on one of the measures and and select 'Add Derived Measure'</p>
</div>
</blockquote>
<p> </p>
<p><span style="color:rgb(33,33,33);font-family:arial, sans-serif;font-size:16px;">Hello mblock, Thanks for your answer, But how do I define the operation in the derived measure for the two column.</span></p>
<p><span style="color:rgb(33,33,33);font-family:arial, sans-serif;font-size:16px;">thanks</span></p>
<p> </p>
<p><span style="color:rgb(33,33,33);font-family:arial, sans-serif;font-size:16px;">Hello, Thanks for your answer, But how do I define the operation in</span></p>
micajblock
<p>In the expression builder for the derived measure select available column bindings. You should see your 2 previous measures.</p>
cennamoc
<blockquote class="ipsBlockquote" data-author="mblock" data-cid="145332" data-time="1474036147">
<div>
<p>In the expression builder for the derived measure select available column bindings. You should see your 2 previous measures.</p>
</div>
</blockquote>
<p>My <span style="font-size:12px;background-color:rgb(247,247,247);">measures is one (month), parameters report are year , month start , month end.</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);">The months selected con be max 2.</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);"> </span><span style="font-size:12px;background-color:rgb(247,247,247);">In the expression builder i see only one measured</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);">thanks.</span></p>
<p> </p>
<p><span style="font-size:12px;background-color:rgb(247,247,247);"> </span></p>
micajblock
<p>OK, now I understand the requirement. I do not know off the top of my head. Let me investigate.</p>
micajblock
<p>OK, so one way to do this is to</p>
<ol><li>create a total for the crosstab</li>
<li>add an aggregation for first, set visibility to hide</li>
<li>add an aggregation for last, set visibility to hide</li>
<li>Add a data item that is last - first</li>
</ol><p> </p>
<p>See attached example using classic models.</p>
cennamoc
<blockquote class="ipsBlockquote" data-author="mblock" data-cid="145357" data-time="1474359965">
<div>
<p>OK, so one way to do this is to</p>
<ol><li>create a total for the crosstab</li>
<li>add an aggregation for first, set visibility to hide</li>
<li>add an aggregation for last, set visibility to hide</li>
<li>Add a data item that is last - first</li>
</ol><p> </p>
<p>See attached example using classic models.</p>
</div>
</blockquote>
<p>Hi mblock,</p>
<p> </p>
<p><span>Perfect, it works .<br>
Thank you very much for helping</span></p>
<blockquote class="ipsBlockquote">
<p> </p>
<blockquote class="ipsBlockquote">
<p> </p>
</blockquote>
</blockquote>