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 have a table that looks like the following below (With more rows). I am trying to create a formula with "Modeling - New Measure" to calculate the percent of closed won. I want to do percent = Closed Won / (Closed Lost + Won) in DAX expression. Thanks 🙂
Discount Percentage Stage Name
10% Closed Lost
17% Closed Won
8% Closed Won
11% Closed Lost
Solved! Go to Solution.
Hi, @Lattelin ;
You could create a measure as follows:
Measure = SUMX(FILTER(ALL('Table'),[Stage Name]="Closed Won"),[Discount Percentage])/SUMX(ALL('Table'),[Discount Percentage])
or
Measure =
DIVIDE (
SUMX (
FILTER ( ALL ( 'Table' ), [Stage Name] = "Closed Won" ),
[Discount Percentage]),
SUMX ( ALL ( 'Table' ), [Discount Percentage] ))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Lattelin ;
You could create a measure as follows:
Measure = SUMX(FILTER(ALL('Table'),[Stage Name]="Closed Won"),[Discount Percentage])/SUMX(ALL('Table'),[Discount Percentage])
or
Measure =
DIVIDE (
SUMX (
FILTER ( ALL ( 'Table' ), [Stage Name] = "Closed Won" ),
[Discount Percentage]),
SUMX ( ALL ( 'Table' ), [Discount Percentage] ))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @Lattelin , i used this measure
See if works for you
@Lattelin , Assume Discount Percentage is a measure
Try meausre
divide(calculate([Discount Percentage], filter(Table , Table[Stage Name] = "Closed Won")),
calculate([Discount Percentage]))
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 | |
| 46 | |
| 42 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |