Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Display unique items that appeared each year

I am new to DAX and using Power Query & Powerpivot in Excel 2016 to transform and load data to a pivot. I am simply trying to get a list of Unique Characteristics Values (CHAR VAL) and their counts (...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    7 years ago

    Anonymous

     

    Try this revision

     

    Distinct Count With Totals =
    IF (
        HASONEFILTER ( tblData[Item Appearance Date (Year) 1] )
            && HASONEFILTER ( tblData[CHAR DESCRIPTION] )
            && HASONEFILTER ( [CHAR VALUE] ),
        [DistinctCount],
        SUMX (
            SUMMARIZE (
                tblData,
                [Item Appearance Date (Year) 1],
                [CHAR DESCRIPTION],
                [CHAR VALUE]
            ),
            [DistinctCount]
        )
    )