Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello @everyone,
I am trying to do a win loss analysis with closing ratio. I would like to create a dax that will:
1. Count the number of WINS with production date starting 9/1/2023
2. Count the number of losses with the timestamp closed of 9/1/2023.
Currently I created a dax that only counts the win and loss but no dates/period.
Here is my dax sample:
** For WINS Count**
Solved! Go to Solution.
Hi @lorenz0210 ,
You can update the formula of your measures as below and check if they can return the expected result.
** For WINS Count**
Closing Ratio Win Count =
CALCULATE (
COUNT ( '2024 Closing Ratio - ALL'[Win_Loss_Status] ),
FILTER (
'2024 Closing Ratio - ALL',
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Win"
&& '2024 Closing Ratio - ALL'[production date] >= DATE ( 2023, 9, 1 )
)
)
** For LOSSES Count**
Closing Ratio Loss Count =
CALCULATE (
COUNT ( '2024 Closing Ratio - ALL'[Win_Loss_Status] ),
FILTER (
'2024 Closing Ratio - ALL',
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Closed"
&& '2024 Closing Ratio - ALL'[timestamp] = DATE ( 2023, 9, 1 )
)
)
If the above one can't help you get the expected result, please provide some raw data in your table '2024 Closing Ratio - ALL' (exclude sensitive data) with Text format and your expected result with special examples and screenshots. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @lorenz0210 ,
You can update the formula of your measures as below and check if they can return the expected result.
** For WINS Count**
Closing Ratio Win Count =
CALCULATE (
COUNT ( '2024 Closing Ratio - ALL'[Win_Loss_Status] ),
FILTER (
'2024 Closing Ratio - ALL',
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Win"
&& '2024 Closing Ratio - ALL'[production date] >= DATE ( 2023, 9, 1 )
)
)
** For LOSSES Count**
Closing Ratio Loss Count =
CALCULATE (
COUNT ( '2024 Closing Ratio - ALL'[Win_Loss_Status] ),
FILTER (
'2024 Closing Ratio - ALL',
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Closed"
&& '2024 Closing Ratio - ALL'[timestamp] = DATE ( 2023, 9, 1 )
)
)
If the above one can't help you get the expected result, please provide some raw data in your table '2024 Closing Ratio - ALL' (exclude sensitive data) with Text format and your expected result with special examples and screenshots. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
@lorenz0210 , Try using below method
Closing Ratio Win Count =
CALCULATE (
COUNT('2024 Closing Ratio - ALL'[Win_Loss_Status]),
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Win",
'2024 Closing Ratio - ALL'[Production_Date] >= DATE(2023, 9, 1)
)
Closing Ratio Loss Count =
CALCULATE (
COUNT('2024 Closing Ratio - ALL'[Win_Loss_Status]),
'2024 Closing Ratio - ALL'[Win_Loss_Status] = "Loss",
'2024 Closing Ratio - ALL'[Closed_Timestamp] >= DATE(2023, 9, 1)
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |