Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

bar chart , returning sum(sales) and reference ID

Hello Community,

I'm not really good at set analysis, but it would be great if anyone can help me out here.

I have a table with

DateReference IDProductSales
01.01.15100001A100
01.01.15100001A100
01.01.15100002B200
01.06.15100003C300
01.06.15100003A100
01.09.15100004B200
01.09.15100004C300

The barchart should return me sum(sales) with the reference ID as Quick Information and Values in the graphic by choosing Date as Dimension

Example:

01.01.15 = sum(sales) = 200 with Reference ID 100001

01.01.15 = sum(sales) = 200 with Reference ID 100002

01.06.15 = sum(sales) = 400 with Reference ID 100003

01.09.15 = sum(sales) = 300 with Reference ID 100004

1 Solution

Accepted Solutions
HirisH_V7
Master
Master

Hi ,

May be like this,

Dimension:

Date

Reference ID

Expression:

=Aggr(Sum(Sales),[Reference ID],Date)

Bar Chart with required output.PNG

Hope this helps,

HirisH

HirisH
“Aspire to Inspire before we Expire!”

View solution in original post

7 Replies
tresesco
MVP
MVP

Do you want two bars for 01.01.15 date?

miguelbraga
Partner - Specialist III
Partner - Specialist III

Greetings,

Check this out:

Screenshot_1.png

Hope it helps

Regards,

MB

miguelbraga
Partner - Specialist III
Partner - Specialist III

By the logic of your example:

Example:

01.01.15 = sum(sales) = 200 with Reference ID 100001

01.01.15 = sum(sales) = 200 with Reference ID 100002

01.06.15 = sum(sales) = 400 with Reference ID 100003

01.09.15 = sum(sales) = 300 with Reference ID 100004

Shouldn't the last expression result be 500?

sunny_talwar

Looking for this?

Capture.PNG

Dimension:

=Dual(Date, Date&[Reference ID])

Expression1:

=Sum(Sales)

Expression2:

=[Reference ID]

Expression2 needs following settings on the expression tab

Capture.PNG

HirisH_V7
Master
Master

Hi ,

May be like this,

Dimension:

Date

Reference ID

Expression:

=Aggr(Sum(Sales),[Reference ID],Date)

Bar Chart with required output.PNG

Hope this helps,

HirisH

HirisH
“Aspire to Inspire before we Expire!”
miguelbraga
Partner - Specialist III
Partner - Specialist III

Missed the part where you want a bar chart, just convert using the screenshots provided:

Screenshot_3.png

Screenshot_4.png

Screenshot_5.png

Screenshot_6.png

thanhphongle
Creator II
Creator II
Author

Thank you to everyone responding on my problem.

It works well with the solution of Hirish and Miguel!