Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Distinct Count - DAX Check Needed

I have 2 columns: ZH# + ZH Versions. ZH# is the item number. ZH Version is the version iteration of the ZH#.    PROBLEM TO SOLVE = How can I get a distinct count of all the ZH# + take into consider...
  • Stachu's avatar
    7 years ago

    I don't get the logic exactly

     

    ZH#DistinctCount = DISTINCTCOUNT(ZH[ZH#])

     

    returns 7, which is including ZH# 30 which has version 1.3B, which is also the only version for ZH# 30
    so it seems to me that output should be 8 not 9, correct?

    if you want to count multiple verisons within same ZH# I would probably do something like this

    Measure = COUNTROWS ( SUMMARIZE ( ZH, ZH[ZH#], ZH[ZH Ver.] ) )