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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dev_B_PBIing
Frequent Visitor

Attach rate measurement

I am working on calculating percentage/attach rate of bundles of products to total won deals.  I know I probably need to use the Divide function to make this work, the issue is that I cannot figure out how to build the formula.

 

Example:

 

On table 1, I have all closed deals that includes a column with bundle codes, and a column containing deal status (Won, Lost, Discounted).  On table 2 I have the actual bundle names.  I have a common bundle code on both tables that I have created a relationship on. 

 

I need my formula to be a Count of Deals won (table 1) containing any Bundle name (table 2) / All deals where the status of the deal is won.  I'm new to DAX and can't quite get this forumla to work with my current knowledge set.

1 REPLY 1
Anonymous
Not applicable

Hi @Dev_B_PBIing ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1685068267725.png

vtangjiemsft_1-1685068275365.png

 

(2) We can create measures. 

Count of Deals won with Bundle = 
COUNTROWS(FILTER(ALL('Table1'),'Table1'[deal status]="Won"  && RELATED('Table2'[actual bundle name])<>BLANK()))
All Deals won = COUNTROWS(FILTER(ALL('Table1'),'Table1'[deal status]="Won"))
Percentage of Deals won with Bundle = DIVIDE('Table1'[Count of Deals won with Bundle],'Table1'[All Deals won],0)

(3) Then the result is as follows.

vtangjiemsft_2-1685068358582.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. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.