Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

line and Clustered Column Chart - count distintic do not exclude "no data values"

hi team, i'm very new to pbi and at the moment I only use the visualization tools and not DAX i'm totally getting crazy since i'm tring to show on a line and clustered column chart some values but i...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

    You can create a measure as below:

    count of a = 
    VAR _tab =
        SUMMARIZE (
            'Table',
            'Table'[a],
            "count of a", CALCULATE ( COUNT ( 'Table'[a] ), FILTER ( 'Table', 'Table'[a] <> BLANK () ) )
        )
    RETURN
        SUMX ( _tab, [count of a] )

    Best Regards