Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CuriousGuy001
Helper I
Helper I

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 of Sales/Total Count, for the Total Count I do want to filter 4 values out of 10 values. For example, Total Sales/Total Count(Installed Scheduled, Closed Won, Contract Signed, Installed Completed). It would be nice if I can see the calculation, so I can play around and see if I can get the result I want. Thank you in advance! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CuriousGuy001 ,

 

(1) This is my test data. 

vtangjiemsft_0-1714974826085.png

(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.

vtangjiemsft_1-1714974883846.png

 

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. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @CuriousGuy001 ,

 

(1) This is my test data. 

vtangjiemsft_0-1714974826085.png

(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.

vtangjiemsft_1-1714974883846.png

 

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. 

Hi there,

 

Thank you for this modelling and vizualization and yes this is what I was looking for. I appreciate it! 

WinterMist
Impactful Individual
Impactful Individual

@CuriousGuy001 

 

Is it possible to provide more context?

- screenshot of model, showing tables & relationships

- sample table data (10 rows or less)

- screenshot (from Excel perhaps) of desired visual output

 

Regards,

Nathan

Hi Nathan,

 

Thank you, but one of the community support provided me with I was looking for. Once again thank you dropping by and helping me!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.