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

Struggling with Set Analysis

Hello,

I am struggling with something and would need help.

I have a table with shows PLAN and ACTUAL SALES for Financial Year 2014.(which starts from Sept 2013)

Now when I click on year it sums sales (i.e. 😎 and sums plan (i.e. 43) .... but I want to find a way so that it sums plan only for the month where we have a sales numbers i.e. it should only sum plan = 2+3+4+3 ....

Not sure how to find out the month which have actual sales.

Month '14Plan($) ' 14Actual Sales($) '14
Sep22
Oct33
Nov42
Dec31
Jan2
Feb3
Mar4
Apr5
May6
Jun4
Jul3
Aug4
Total438

thanks in advance

H

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Please check enclosed file...

View solution in original post

11 Replies
swuehl
MVP
MVP

Maybe like

=sum({< [ACTUAL SALES] = {">0"}>} [PLAN])

nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi,

you can write the following expression:

Sum(  {<Date_Field = {"=not isnull(Actual Sales)"} >}   PLANS)

-Nilesh

rustyfishbones
Master II
Master II

Try this

2014-01-25_1308.png

Not applicable
Author

Thanks guys,

Sales have negative values ... so >0 logic not returning correct answer

Nilesh,

Your logic, returns 0, so it is not summing up anything

Not applicable
Author

=sum({$<[Sales Actual]={"=not isnull(Actual Sales)"}>}[Plan Value])

This is what I have tried

I also added empty rows in sales for the remaining months.

Not applicable
Author

i have attached the file

MK_QSL
MVP
MVP

Please check enclosed file...

Not applicable
Author

Thanks Manish.

It works.

Will be even great  if you can explain the dimension you have added

=IF(AGGR(SUM([Sales Actual]),Month)>0,Month)

thanks buddy!

H

MK_QSL
MVP
MVP

AGGR(SUM([Sales Actual]),Month


This will give you SUM([Sales Actual]) group by Month


IF(AGGR(SUM([Sales Actual]),Month)>0..... will check if SUM([Sales Actual ]) greater than 0 then only it will take

Month as Dimension...