am trying to get the totals at the end of each row in a pivot table.
Please find the attached sample data and am looking for the below senario using pivot table..
in the below table code, location and Division are dims and total occupency and available vacancy are the expressions.
am trying to get the below type of chart. but in my chart each expression is divided by each dimension and am not able to get the below type of charts.
Please guide me on how to build this type of chart. Thanks Much.
|Code||Location||Mobile||Media||Wifi||TV||router||Callers||total occupency||available vacancy|
This seems to be the case to use Crosstable() statement.
(ooxml, embedded labels, table is Plan1);
left join (NewData)
drop tables Cross,x;
Attached the sample file i used (just copied your data into a spreadsheet.
With that, I got the following with a simple sum(Value) expression:
Thanks Felip for your valuable time on this.
Hope my ask may not be clear to you, sorry for that.
i have 3 dimenstions and one expression out of these 2 dimension are normal and one should be pivoted. so the result should look like the above sample pivot table i have given in my post. there division is the third dimension and total occupency is my expression. is it possible to get the total column for the expression like i shown in above post.
if we sum up all the values in the first row we have to get 345. and value should come in a separate column as total which is not available in pivot table.
Any possibility to achive this with 3 dimensions, just got to know that with 2 dims its possible. any extension will help us to achieve this..??
Thanks Much Again !!
Thanks again, till this it was fine, but when we add another expression it was calcuting that expression to each and every pivoted dimention which i dont want.
i want to calculate the expression : available Space.
and the above expression should come with an another column beside total occupency, so that i can calculate the % of occupency.
seems like for my second expression dim 2 and dim 3 needs to be disabled in the calculation..or some thing around this...
can we disable some dims while calculating the expression...??? is this possible... ???
please let me know if my above requirement is not clear...
Thanks Much Felip,
we are near to the solution, can you please check my origincal post where i have given my exact requirement.
the second expression that we added must be calculated only once, and that to at the end beside the total occupency
am not sure on its possibility.
in your above solution second expression is calculated for all the 3rd dimension values. Please check my main post.
Thanks again for your time...