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
EVEAdmin
Post Patron
Post Patron

Multiply Measure by Column

Hi all

the screen shot below displays:

1) a matrix visual

2) a table

The content in the Matrix is generated by a measure. The column June will display the products sold in June.

The table stores a price difference for each of those products.

The Sales table and the price difference table are related, through the Product No field.

 

I am attempting to write a formula or another solution where the quantity of each product sold in the period is multiplied by the price difference. However, each time the result seems to aggregate the price difference column.

Any help, please?

 

Snag_1a1f5873.png

 

Hi all

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@EVEAdmin hard to write the exact formula with the data supplied, but basically you need something like:
measure = SUMX('Sales', 'Sales'[Quatntity] * RELATED('Store'[difference]))


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@EVEAdmin hard to write the exact formula with the data supplied, but basically you need something like:
measure = SUMX('Sales', 'Sales'[Quatntity] * RELATED('Store'[difference]))


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

@SpartaBI thank you very much,

even though the data supplied were limited, you provided the solution I needed, very quickly.
Appreciated.

@EVEAdmin my pleasure 🙂
Hey, check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. 
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂

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.

Top Solution Authors