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
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.
Hi @Dev_B_PBIing ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(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.
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |