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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Lattelin
Frequent Visitor

Help calculate "Closed Won" on PowerBi Measure, Simple Formula

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

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

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:

vyalanwumsft_0-1625206898461.png

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.

 

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

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:

vyalanwumsft_0-1625206898461.png

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.

 

Anonymous
Not applicable

Hey @Lattelin , i used this measure

Measure = DIVIDE(CALCULATE(COUNTROWS(Tabela),Tabela[Stage Name]="Closed Won"),COUNTROWS(Tabela))

Postigo_0-1625063295819.png

See if works for you

amitchandak
Super User
Super User

@Lattelin , Assume Discount Percentage is a measure 

 

Try meausre 

divide(calculate([Discount Percentage], filter(Table , Table[Stage Name] = "Closed Won")),
calculate([Discount Percentage]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.