Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Only Max and Min value for bar chart

Hello All,

I have a customers data where i want to show only the maximum and minimum values of the sales value for the bar chart. only show max and min values not show all values.


CustomerSales
John450
Andrew800
Mick600
Alex1500
Admin700
Ales wan900

Thanks

8 Replies
its_anandrjs

Take a Bar chart and

Dimension:- Customer

Expression for Max :- if(Max (TOTAL Sales)=Sales, Sum(Sales))

Expression for Min :-  if(Min (TOTAL Sales)=Sales, Sum(Sales))

Not applicable
Author

I dont want two expression i want to don this in single expression.

Not applicable
Author

Hi,

Use the same expression provided by anand as

=if(max (TOTAL Sales)=Sales, Sum(Sales),if(min(TOTAL Sales)=Sales,Sum(Sales)))

and remove the second one

its_anandrjs

Thanks

Write this expression

Dimesnion:- Customer

Expression:- If(Min(TOTAL Sales) = Sales,sum(Sales),if(max(TOTAL Sales)=Sales, sum(Sales)) )

maxgro
MVP
MVP

if(rank(sum(Sales))=1, sum(Sales),

if(rank(-sum(Sales))=1, sum(Sales)

))

MK_QSL
MVP
MVP

Create a Straight Table

Dimension

Customer

Expression

=SUM({<Customer = {"=Rank(SUM(Sales))=1 or Rank(-SUM(Sales))=1"}>}Sales)

Not applicable
Author

Thanks all its very nice i come up with next question in same.

MK_QSL
MVP
MVP

Kindly close this thread by selecting appropriate answer if your problem solved.