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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
i have a table named "V_QTSDAMA" and I have a column named "ItemName" with a repeating products with its own stock.
I need to calculate the sum of " BESOIN PF " for each product. ( to not to have the products repeating themselves)
PS : note that the column "BESOIN PF" it's calculated as a Mesure.
- i work on a directquery Mode.
For exemple this is result that I want , i made it on excel :
Thanks,
ACHRAF KASMI
hello all ,
can someone help ?
thanks,
You can try
Total of products =
VAR ProductsWithValues =
ADDCOLUMNS ( VALUES ( 'V_QTSDAMA'[ItemName] ), "@value", [BESOIN PF] )
VAR Result =
SUMX ( ProductsWithValues, [@value] )
RETURN
Result
thank you for your answer,
the formulate doesn’t work, she didn’t return the sum, she just returned I think the minimum and not the sum.
but with this formulate i'm able to shave the ItemName.
thanks,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |