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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
irinabazghadze
Frequent Visitor

I need to gett category value next to all sub-category values

hiii,

my table is same:

CategoryNameSubcategoryNameaveragepricenewcolumn
Accessories 52.3 
 Bike Racks12052.3
 Bike Stands15952.3
 Bottles and Cages852.3
 Cleaners852.3
 Fenders2252.3
 Helmets3452.3
 Hydration Packs5552.3
 Lights3152.3
 Locks2552.3
 Panniers12552.3
 Pumps2252.3
 Tires and Tubes1952.3
Bikes 1530.6 
 Mountain Bikes16371530.6
 Road Bikes15301530.6
 Touring Bikes1425

1530.6

 

 

I need add new column same "newcolumn". so get category value next to all sub-category values.

7 REPLIES 7
tamerj1
Super User
Super User

Hi @irinabazghadze 

Please try

New Column =
CALCULATE ( [AveragePrice], ALL ( 'Table'[SubCategoryName] ) )

I get same value:

irinabazghadze_0-1687098603840.png

 

@irinabazghadze 

Do you have any column in the matrix other than category and subcategory?

NO,

this is my matrix visual:

irinabazghadze_0-1687100198095.png

 

@irinabazghadze 

Strange! What is the dax for averageprice measure?

@tamerj1 

averageprice = AVERAGE(Products[ProductPrice])

@irinabazghadze 

Oh! I think you're creating a calculated column. This is supposed to be a measure 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.