DistinctCount with date criteria - Power BI
community.powerbi.com › t5 › DesktopSep 12, 2017 · DistinctCount with date criteria 09-12-2017 09:10 AM Hi All, I have been trying to create a DAX measure that counts the unique number of outlets that are out of stock in the current month i.e. had stock any point in the previous month. Below is an example of my data AuditDate OutletID ProductName StockQuantity 15-Jul-17 1001 Candles 0
DISTINCTCOUNT function (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxJun 21, 2022 · You can use columns containing any type of data. When the function finds no rows to count, it returns a BLANK, otherwise it returns the count of distinct values. DISTINCTCOUNT function counts the BLANK value. To skip the BLANK value, use the DISTINCTCOUNTNOBLANK function. This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.