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.
Hi,
Good Day!
i have a dataset, i would like calculat the sum of column (Mnt Transport) but for each (N° Expédition).
fILE : link
exemple :
for month August , the sum of Mnt transport is 382500, is not 10420200 as in the file, because the amount of (Mnt Transport )is redoubled for each row.
Sum of August is 4500+(43200*7)+(37080*2) =382500
many thinks
Solved! Go to Solution.
Hi, @Kadrimedquali
Sum of August is 4500+(43200*7)+(37080*2) =>>4500+302400+74160=381060
try to create a measure like this:
Measure =
var _t1=SUMMARIZE('Base export',[Date Expédition].[Mois],[Transporteur],"1",DISTINCTCOUNT('Base export'[N° Expédition]),"2",AVERAGE('Base export'[Mnt Transport]))
var _t2=ADDCOLUMNS(_t1,"3",[1]*[2])
return SUMX(_t2,[3])
Result:
Please refer to the attachment below for details. Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi, @Kadrimedquali
Sum of August is 4500+(43200*7)+(37080*2) =>>4500+302400+74160=381060
try to create a measure like this:
Measure =
var _t1=SUMMARIZE('Base export',[Date Expédition].[Mois],[Transporteur],"1",DISTINCTCOUNT('Base export'[N° Expédition]),"2",AVERAGE('Base export'[Mnt Transport]))
var _t2=ADDCOLUMNS(_t1,"3",[1]*[2])
return SUMX(_t2,[3])
Result:
Please refer to the attachment below for details. Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i need help
thank you
I can't downoad the file (need Access), can you share that on https://gofile.io/
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
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 |
---|---|
105 | |
105 | |
88 | |
73 | |
66 |
User | Count |
---|---|
122 | |
112 | |
98 | |
79 | |
72 |