Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello all, i need to calculate the avrage selling price for multiple items, so the scenario as below
i have around 5 items, i need to get the fourmila as below
sum of net value for each item/sum of item quantites from the same item
all of that to be done on monthely basis so is there any tips and tricks help me in this request ?
Solved! Go to Solution.
Hi, @matef
According to your description, You want to generate a table, grouped by month and item, and calculate the total profit, total, and average for each item. Right?
Here are the steps you can follow:
(1)This is my test data:
(2) We can click "New Column" in the original table to create a year and month column:
Month = YEAR('Sheet4'[Billing Date])*100 & MONTH('Sheet4'[Billing Date])
(3)We can click “New Table” and enter :
Table =
ADDCOLUMNS (
SUMMARIZE (
'Sheet4',
'Sheet4'[Month],
'Sheet4'[Short Description],
"Sum of w/o tax", SUM ( 'Sheet4'[Value w/o tax] ),
"Sum of quatity", SUM ( 'Sheet4'[Billed Quantity] )
),
"Average per Month", DIVIDE ( [Sum of w/o tax], [Sum of quatity] )
)
(3)Then we can meet your need ,the result is as follows:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, @matef
According to your description, You want to generate a table, grouped by month and item, and calculate the total profit, total, and average for each item. Right?
Here are the steps you can follow:
(1)This is my test data:
(2) We can click "New Column" in the original table to create a year and month column:
Month = YEAR('Sheet4'[Billing Date])*100 & MONTH('Sheet4'[Billing Date])
(3)We can click “New Table” and enter :
Table =
ADDCOLUMNS (
SUMMARIZE (
'Sheet4',
'Sheet4'[Month],
'Sheet4'[Short Description],
"Sum of w/o tax", SUM ( 'Sheet4'[Value w/o tax] ),
"Sum of quatity", SUM ( 'Sheet4'[Billed Quantity] )
),
"Average per Month", DIVIDE ( [Sum of w/o tax], [Sum of quatity] )
)
(3)Then we can meet your need ,the result is as follows:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thnx Very Much i tried and its working fine
Hi, try this.
Create a Calculated Table:
Summarize ( TEST ; "Month Column" ; Month(TEST[Billing Date]);"Product Column" ; TEST[Short Description]; "Earnings" ; SUM(TEST[Value w/o tax]) ; "Quantity item per Month " ; SUM(TEST[Billed Quantity]);"Average per Month" ; [Earnings]/[Quantity item per Month])
tried alot, but i think its not working fine with me, tried the same fourmila but its not working i do the summrize for both billing date and materials its coming correct but the summition of the values it not coming
Table = SUMMARIZE(TEST, "Month Column", Month(TEST[Billing Date].[Month], "Product Column", TEST[Short Description], "Earnings", (SUM(TEST[Value w/o tax])), "Quantity item per Month ", (SUM(TEST[Billed Quantity])), "Average per Month", [Earnings]/[Quantity item per Month])
i used the above one, but also there is no result
this is the error which i recived
and if i use the same code excatly
i got this one
in your second try use commas instead semi colon
Do you still trying?
yes already tried with changing some fourmilas and its fixed, lof of thanx for your support
Data Example For Refrence
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |