CubeValue - Count distinct suppliers only where sales >0

JV0710

Active Member
Joined
Oct 26, 2006
Messages
429
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,110
Messages
6,123,140
Members
449,098
Latest member
Doanvanhieu

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