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
ironboy0418
Helper II
Helper II

How to return a value without aggregating the sum of each rows by using new measure or dax?

I have a sample table in Power BI that has repeating value for price. The objective is to return the prices for each category without summing-up all the values in row price.

 

Sample table:

ironboy0418_0-1681902148085.png

 

 

Desired output:

ironboy0418_1-1681902160373.png

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @ironboy0418 

there are many ways:

you can just plot a table visual with category and price columns. Choose min, max or average for price column.

or
plot a table visual with category columns and a measure like:
measure = MIN(TableName[Price])

or
create a calculated table like:
Table =
ADDCOLUMNS(
VALUES(TableName[Category]),
"Price",
CALCULATE(MIN(TableName[Price]))
)

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @ironboy0418 

there are many ways:

you can just plot a table visual with category and price columns. Choose min, max or average for price column.

or
plot a table visual with category columns and a measure like:
measure = MIN(TableName[Price])

or
create a calculated table like:
Table =
ADDCOLUMNS(
VALUES(TableName[Category]),
"Price",
CALCULATE(MIN(TableName[Price]))
)

barritown
Super User
Super User

Hi,

Why don't you just a table visual, add Category & Price to its Values field and then choose Average or Median in the options for aggregation?

barritown_0-1681906108832.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

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.