Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitians
Creator III
Creator III

Combo chart help required??

Hello,

I have a combo chart where in net sales division wise is displayed ....i want to display top 5 division sales contribution to total sales in a text box...

Following is the expression for sales...

(SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},

[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),0,4))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}>}[Gross Sales Amount])

-

SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},

[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),0,4))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}>}[Sales Return Amount])

)

/100000

Thanks and Regards,

Rohit Yadav

Message was edited by: Rohit Yadav

1 Solution

Accepted Solutions
Anonymous
Not applicable

HI ,

Please find attached qvw.

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Kindly send the qvw file.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
kaushalview
Partner - Creator II
Partner - Creator II

Hi,

If you want to dispaly top 5 division sales then use rank function with aggr of based on Field u want to sort.

Regards

Kaushal Mehta

rohitians
Creator III
Creator III
Author

No i want is percentage of sum of sales of top 5 divisions contribution to the total sales of company...

rohitians
Creator III
Creator III
Author

Hey do want to say in this manner,

=AGGR(IF(RANK((SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},

[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),0,4))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}>}[Gross Sales Amount])

-

SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},

[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]),0,4))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}>}[Sales Return Amount])

)

/100000)<=5,Division)  

Anonymous
Not applicable

HI ,

Please find attached qvw.

rohitians
Creator III
Creator III
Author

Thank You Jatin..