Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a table in my report (see attached 't20_mat_existing_table') which displays all the records. I want it to show only top 20 materials (rows) which has highest 2016(YTD) , change%. Result should look like the table attached 't20_mat_proposed_table_pie'.
NOTE:
2016(YTD) = sum({$<[Fiscal Year]= {$(=Year(Today()))}>} ([In company code currency POS]/RateFixed))
change % = (sum({$<[Fiscal Year]= {$(=Year(Today()))}>} ([In company code currency]/RateFixed))-sum({$<[Fiscal Year]= {$(=Year(Today())-1)}>} ([In company code currency]/RateFixed)))/sum({$<[Fiscal Year]= {$(=Year(Today())-1)}>} ([In company code currency]/RateFixed))
-James
Hi,
For your table, you can sort by expression in the sort tab.
For your chart, you can use the dimension limits.
See attachments with screenshots as an example.
Thanks Filip,
Your example worked for me in table. Great !!
Now i need the pie chart to display the sum of Top 20 sales in 2016(YTD) against sum of all the materials' 2016(YTD). How to achieve this ?
TIA,
James
James,
filip_duchateau Continuation, If you want to do in Set Analysis, Then we require your Application.
- Anil
Hi,
Try in dimension,
AGGR(IF(Rank(sum({$<[Fiscal Year]= {$(=Year(Today()))}>} ([In company code currency POS]/RateFixed)), 20)<=20, Material), Material, 'Others')
Hi James,
That's great.
For your chart, please try Muthukumar's suggestion :
Try in dimension,
AGGR(IF(Rank(sum({$<[Fiscal Year]= {$(=Year(Today()))}>} ([In company code currency POS]/RateFixed)), 20)<=20, Material), Material, 'Others')
Muthu,
Your expression displays empty pie. ![]()
Hi,
Can you send me a Qvw file?
Muthu,
sorry , the size is huge.. i have attached the script..
-James
Hi,
try like this,
=if(aggr(sum({$<[Fiscal Year]= {$(=Year(Today()))}>} ([In company code currency POS]/RateFixed))),Material)<=20,Material,'Others')