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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.