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

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

Reply
IronMike15
New Member

Ratio/Percent of Volume using DAX

need to calculate per piece cost from the column below using DAX. In normal excel it would be simple -make another column and divide with volume on each cell. Please help

AttributeValue
Volume25
Service Cost55
Advertising cost67
2 REPLIES 2
FreemanZ
Super User
Super User

@IronMike15 you expectation is not clear to me. could you elaborate that?

Dangar332
Super User
Super User

Hi, @IronMike15 

 

Try below measure

Just adjust your table name and column name

 

Result=

Var a = sum('your table name'[value])

Var b = calculate (sum('your table name'[value]), removefilter('your table name'[attribute]))

Return

Divide (a,b)

 

 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.