Forum Discussion

CuriousGuy001's avatar
2 years ago
Solved

Creating An Average Ticket Formula

Hi everyone,   I am new to DAX, the reason I got into this thread was because I am trying to sort out a calculation that I want to input it for my dashboard visualization, that is, the Total Number...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi CuriousGuy001 ,

     

    (1) This is my test data. 

    (2) We can create measures. 

    Total Sales = SUM('Table'[sales])
    Filtered Count = CALCULATE(
                         COUNTA('Table'[Status]),
                         FILTER(
                            'Table',
                             'Table'[Status] IN {"Installed Scheduled", "Closed Won", "Contract Signed", "Installed Completed"}
                         )
                     )
    Average Ticket Size = DIVIDE([Total Sales], [Filtered Count])

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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