Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
Basically I have two products (A and B) and I want to create the quota of the sold product A in a specific month:
Sales_of_Product_A / (Sales_of_Product_B + Sales_of_Product_A)
The table is already filtered for the specific month, therefore I will only need to sum the specific sales for the different products and then bring them into the above formula.
Product | Sales |
A | 3 |
B | 2 |
B | 1 |
A | 4 |
B | 4 |
A | 3 |
--> Output would be: Quota=(3+4+3)/(3+2+1+4+4+3)
Thank you in advance!
Solved! Go to Solution.
@Anonymous ,
Try this measure:
_Output = DIVIDE(CALCULATE(SUM('Table'[Sales]), 'Table'[Product ] = "A"), CALCULATE(SUM('Table'[Sales]), ALL('Table'[Product ])))
Thanks so much!! This works! Do you know how to convert this to the percentage-format now?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |