Forum Discussion

navneet0512's avatar
navneet0512
Icon for Helper III rankHelper III
2 years ago
Solved

Order number as per filter selection

I want to know the approch for below problem:- I want to see the count of version selected in model version in chart for rest order count in model version will  be like "Nav" or any name . Means pie...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    navneet0512 
    If your database is something in the style of :

    you can create 2 measures :
    1. for counting orders of selected model :

    selected_model_count =
    DISTINCTCOUNT('Table'[order id])
    2. for counting the difference from all the others 
    Diff_from_all = CALCULATE(DISTINCTCOUNT('Table'[order id]),all('Table'[model]))-[selected_model_count]
    and then put these measures on pie "

    PBIX is attached

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