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.
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
Solved! Go to Solution.
Hi @achrafkasmi ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create two measures.
BESOIN PF = MIN('Table (2)'[OnHand])-MIN('Table (2)'[qtsdemandé])
Measure 2 = SUMX('Table (2)','Table (2)'[BESOIN PF])
(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.
Hi @achrafkasmi ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create two measures.
BESOIN PF = MIN('Table (2)'[OnHand])-MIN('Table (2)'[qtsdemandé])
Measure 2 = SUMX('Table (2)','Table (2)'[BESOIN PF])
(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.
any help please ?
I’ll explain, the [BESOIN PF] is need is the current stock less the need for current orders and this is the formula :
BESOIN PF =
MIN('V_QTSDAMA'[OnHand])-min('V_QTSDAMA'[qtsdemandé])
Thanks,
ACHRAF KASMI
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |