DISTINCTCOUNT >0

lokesh2905

New Member
Joined
Apr 9, 2021
Messages
10
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Dear Expert,

I need to use "DISTINCTCOUNT" function in power query only when the sales quantity is >0 in my data i also have value in -1, please help me on that.


Regard's
Lokesh Sharma
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi!

Are you looking for a DAX measure to make that calculation? Based on your message, I think that's what you want, but it's not entirely clear. If so, tty the following, remembering to substitute in the correct table/column names according to the table you are using:
Code:
=CALCULATE(DISTINCTCOUNT(Table[quantity]),Table[quantity]>0)
 
Upvote 0
Hi!

Are you looking for a DAX measure to make that calculation? Based on your message, I think that's what you want, but it's not entirely clear. If so, tty the following, remembering to substitute in the correct table/column names according to the table you are using:
Code:
=CALCULATE(DISTINCTCOUNT(Table[quantity]),Table[quantity]>0)
hello severynm,

thank's for your help, it's working now
 
Upvote 0

Forum statistics

Threads
1,223,675
Messages
6,173,748
Members
452,533
Latest member
Alex19k

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