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
Yamada1
Frequent Visitor

How to recalulate two measures

 I created a dedicated major table and divided the sales by the sales unit price, and while the results for each product are correct, the total is not displayed correctly.

So, I would like to use sum or calculate dax but they are need to table coulmun.

Coule you tell me how ot resolve it?

 

Thanks.

 

9 REPLIES 9
Yamada1
Frequent Visitor

@Anonymous 

@suparnababu8 

Thank you for reply.

I tried to uplaoed the PBI file, but I could not it so I explained details.

Unit is calculated by 

Yamada1_0-1739859316691.png

Measure table contains only measures.

Yamada1_1-1739859385438.png

Sales after allocation from 

Yamada1_2-1739859466484.png

Sales price from master from

Yamada1_3-1739859497266.png

The Sales Price Master is a master list of sales prices for each product, but since it is a table, I averaged it to use with DAX. I suspect this averaging might be the cause.

 

I'm happy if they are helpful to you.

 

Thanks.

 

 

 

 

 

 

 

Anonymous
Not applicable

Hi @Yamada1 ,

 

What do you place on the form visual object? Is your Material ID not a column? If so, you only need to place the Material ID field and the measure Measure on the visual object.

Measure = SUMX(VALUES('Table'[Material ID]),[Unit])

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Thank you.

Material master ID from materia masuter table.

Unit has not conatins a column. 

 

Yamada1_0-1739940834110.png

 

Anonymous
Not applicable

Hi @Yamada1 ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

vtangjiemsft_0-1739761219598.png

Unit = DIVIDE([Sales  after allcoation],[Sale price from master])

(2) We can create a new measure. 

Measure = SUMX(VALUES('Table'[Material ID]),[Unit])

(3) Then the result is as follows.

vtangjiemsft_1-1739761264854.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Thank you Neeko. 

I wanted to use sumx  but there are no data in this table.The table is only aggregated to manage DAX formulas, and there are no columns in the table.

 

Anonymous
Not applicable

Hi @Yamada1 ,

 

Can you please share more details to help us clarify your scenario?

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

 

Best Regards,

Neeko Tang

Yamada1
Frequent Visitor

Attached the snapshot I prepared.

Unit should be 6.51.(Total between M001 and M003).

I calculated the unit using the formula: divide(Sales  after allocation, Sale price from master) in measure.

All columns are  calculated by measure. I could not use sum or calculate Dax because this table does not contain table data.

Yamada1_1-1739515900405.png

Do you have any good solutions?

 

suparnababu8
Super User
Super User

Hello @Yamada1 

 

Could you please share some snapshots of your output? While sharing the snapshots don't include sensitive data. 

 

Thanks!

Thank you for reply.

Attachhed the snapshot I prepared.

Unit should be 6.51.(Total between M001 and M003).

I calculated the unit using the formula: divide(Sales  after allcoation, Sale price from master) in measure.

All column are caluclated by measure. I could not use sum or caclulate dax becasue this table does not contain table data.

Yamada1_1-1739515900405.png

Do you have any good solutions?

 

Helpful resources

Announcements
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!

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.

Top Solution Authors