CubeValue - Count distinct suppliers only where sales >0

JV0710

Active Member
Joined
Oct 26, 2006
Messages
440
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Good Day , Please can I get some help with the following

I have the following cubevalue formula which counts the distinct suppliers in an area

=IFERROR(NUMBERVALUE(CUBEVALUE("ThisWorkbookDataModel","[Query1].[SOURCING SPLIT].[All].[LOCAL]","[Query1].[SOURCING REPORTING PRODUCT].[All].[KNITWEAR]","[Query1].[Gender].[All]","[Measures].[distinct count of Supplier Name]")),0)

The above formula returns an answer = 5

I would to filter and have a distinct count of only the suppliers where season orders were Greater than 0, the answer should then be 2
the measure for the season's orders is: [S'22 UNITS],
so I would like to add to the formula . . . [S'22 UNITS]>0 -- Hope this makes sense

I am stumped as to how to apply this condition and would appreciate any help please

Thanks

Joe
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top