Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
bonjour,
Je dois calculer une somme de quantité pour chaque produit (Item Code) entre deux dates ( date debut ) et (date fin). (tout mes table sont en mode direct query).
La table initiale qui contient la date debut et fin pour chaque produit (item code) :
Nom du table : PROMI
la table du recherche qui contient les quantités pour chaque produit et la date :
Nom du table : V_Qtslivréegms
Solved! Go to Solution.
hello @v-yangliu-msft ,
thank you for your answer , i used this formula and it's work :
Ventes = CALCULATE(SUM('V_QtsLivréegms'[Quantity]),ALLEXCEPT(PROMI,PROMI[Item Code]),FILTER('V_QtsLivréegms','V_QtsLivréegms'[DocDate] >= MIN(PROMI[dateDebut])&&'V_QtsLivréegms'[DocDate] <= MAX(PROMI[dateFin])))
I added another collumn ( Card Name ) on my table PROMI , i want to make SUM of qunatity for item code and Card Name.
thank you so much,
Hi @achrafkasmi ,
Here are the steps you can follow:
1. Create measure.
Measure =
SUMX(FILTER(ALL('V_Qtslivréegms'),
'V_Qtslivréegms'[Date de chargement]>=MAX('PROMI'[Datedebut])&&
'V_Qtslivréegms'[Date de chargement]<=MAX('PROMI'[date fn])&&
'V_Qtslivréegms'[Item Code]=MAX('PROMI'[Item Code])),[qts])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
hello @v-yangliu-msft ,
thank you for your answer , i used this formula and it's work :
Ventes = CALCULATE(SUM('V_QtsLivréegms'[Quantity]),ALLEXCEPT(PROMI,PROMI[Item Code]),FILTER('V_QtsLivréegms','V_QtsLivréegms'[DocDate] >= MIN(PROMI[dateDebut])&&'V_QtsLivréegms'[DocDate] <= MAX(PROMI[dateFin])))
I added another collumn ( Card Name ) on my table PROMI , i want to make SUM of qunatity for item code and Card Name.
thank you so much,
any answers please ?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |