Distinct count dax with a measure filter - Power BI
community.powerbi.com › t5 › DesktopJan 23, 2018 · CALCULATE(DISTINCTCOUNT('Tempo Data'[StoreName]),FILTER('Tempo Data',[Average Product Price]=0),ALL(Mapping[Product Name]),ALL(Mapping[Brand])) As you can see, I can get the unlisted distinct store count. And when use slicer to filter the Product Name or Brand, the Unlisted Store Count measure will be changed however calculated column will not.
DISTINCTCOUNT with filters - Microsoft Power BI Community
community.powerbi.com › t5 › DesktopMay 3, 2018 · In the table below, I'm only interested in the records where Answer = Yes. Then, I want to count the distinct clients. The number of distinct clients should work in any filter context, i. e.: Overall: 2 clients (A and C) By year: 2015: 1; 2016: 1; 2017: 1. By city: New York: 1, Moscow: 1. I tried the following code, but it's not considering the filter context.