Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

how to plot classification data made using a dax measure

Hello, I have the measure: Classificação Cliente Peças = VAR TotalServicos = [Realizado] RETURN     SWITCH(         TRUE(),         TotalServicos >= 1000000, "K",         TotalServicos >=...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous 

    You can try to create a new table, then put the type to the new table

    e.g 

    Type={"A","B","C","K"}

    Then create a new measure

    e.g

    Counts =
    CALCULATE (
        COUNTROWS ( dClientes ),
        FILTER ( dClientes, [Classificação Cliente Peças] IN VALUES ( 'Type'[Value] ) )
    )
    

    Then put the Counts measure to the y-axis, then it can be affected by the date filter.

     

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.