Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all
I have requirement in which I need count of items and sum of items in the bottom row as mentioned in the image in a straight or pivot table.
But in Single object not in multiple objects.
Please suggest me.
Hi Rahul,
Are u able to manage to get the solution?
No worries, you have been very helpful.
No I am working on it.
I am glad I proved somewhat helpful.
Best,
Sunny
Hi Rahul,
Please find attached file for solution.
Regards,
Jagan.
Jagan can you share some screenshots of what you have done as I am working with PE and would love to know how it can be done.
Thanks,
Sunny
Hi Jagan, the above format is correct small changes in expression will make it perfect
=If( [Item No.] = 'Percentage',
Num(Sum(TOTAL [0-1M])/Sum(TOTAL TotalInventory), '#,##0.000'),
If( [Item No.] = 'Count',
Num(Count(TOTAL [0-1M]), '#,##0.000'),
if([Item No.] = 'Sum', Num(Sum(TOTAL [0-1M]), '#,##0.000'),
Num(Sum([0-1M]), '#,##0.000'))))
Hi Sunny,
Script changes:
Table:
LOAD [Item No.],
Description,
[0-1M],
[2-3M],
[4-6M],
[7-12M],
[13-24M],
[25 - 36M],
[>36M],
TotalInventory
FROM
Requirement.xlsx
(ooxml, embedded labels, table is Sheet1);
Concatenate(Table)
ADD ONLY LOAD
*
INLINE [
Item No.
'Sum'
'Count'
'Percentage'];
Chart level changes:
Disabled all totals
Expression:
=If( [Item No.] = 'Sum',
Num(Sum(TOTAL [0-1M]), '#,##0.000'),
If( [Item No.] = 'Count',
Num(Count(TOTAL [0-1M]), '#,##0.000'),
Num(Count(TOTAL [0-1M])/Count(TOTAL [0-1M]), '#,##0.000')))
Regards,
Jagan.
Hahahaha didn't think of this method and was not sure if making changes to the script was an option.
Thanks for sharing jagan
Sunny