Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
heetu24
Helper I
Helper I

Total Average Price of Category

Hello, I am looking for one help in below scenario.

Average Price  = Sales Value/ sales Volume *100

 

I want to  create the  table as per below screen shot . And looking for column  "Average price of Category" as per  below Excel screen shot by DAX as  Measure.

There is only one Category that's why it is same number in  "Average price of Category" column in below screen shot.

 

Note: This is the dummy/sample data.

 

Brand CategoryAverage Price Of BrandAverage price of Category
Ax6.434.9
Bx10.114.9
Cx24.124.9
Dx15.164.9
Ex174.9

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @heetu24 
Thanks for the quick reply.
 

I offer two options for your needs:

 

1.Create calculated column references:

Column = ('Table'[Average Price Of Brand]/'Table'[Average price of Category])*100

2. Below are the measure I've created for your needs:

Measure = (SUM('Table'[Average Price Of Brand])/SUM('Table'[Average price of Category]))*100

3.Here's my final result, which I hope meets your requirements:

vlinyulumsft_0-1724045991122.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks for the reply from lbendlin , please allow me to provide another insight:

Hi, @heetu24 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1724035609757.png

2. Below we've given you two measures:

 

Measure1 = AVERAGEX(ALL('Table'),'Table'[Average Price Of Brand])
Measure2 = CALCULATE(AVERAGE('Table'[Average Price Of Brand]),ALL('Table'))

 

3.If you need a total value, we recommend converting the measure to a calculated column and then modifying the aggregation type:

vlinyulumsft_1-1724035672460.png 

vlinyulumsft_2-1724035672461.png

4.Here's my final result, which I hope meets your requirements.

vlinyulumsft_3-1724035686884.png

5.Here is the relevant documentation:

 AVERAGE function (DAX) - DAX | Microsoft Learn
AVERAGEX function (DAX) - DAX | Microsoft Learn
ALL function (DAX) - DAX | Microsoft Learn
ALLSELECTED function (DAX) - DAX | Microsoft Learn
 

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi, Thank you for your help.

 

In the Average Price of the toal Average is 72.82. That 72.82 I am looking in seperate column row by row. That is Average Price of the category.

 

Puropose of this is I want to calculate API(Average Price Index)= (Average Price of the Brand/ Average price of the category)* 100.

 

Categoty is only one so Average Price of the category will be same.

 

Looking forward to hear from you

Anonymous
Not applicable

Hi, @heetu24 
Thanks for the quick reply.
 

I offer two options for your needs:

 

1.Create calculated column references:

Column = ('Table'[Average Price Of Brand]/'Table'[Average price of Category])*100

2. Below are the measure I've created for your needs:

Measure = (SUM('Table'[Average Price Of Brand])/SUM('Table'[Average price of Category]))*100

3.Here's my final result, which I hope meets your requirements:

vlinyulumsft_0-1724045991122.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.