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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

how to calculate quantity*price both colum diff table

Hi team,
previous i have wrote query in sql server bellow
Select A.date,A.isin,(A.quintity * B.price) as amount from table1 A
inner join table2 B
ON A.date=B.date
and B.ISIN=B.ISIN
----------i got good reault_____
Now i got same table in excel how to i have fiz this
gate and isin column many to many relation


my question:
1.how to create datamodel in power bi desktop
2.what dax formal i need wrote calculating quantity * price

plase anybody help me.

thanks
shanvitha
4 REPLIES 4
jdbuchanan71
Super User
Super User

Hello @Anonymous 

For your first question, take a look at the free introduction to DAX from SQLBI.  https://www.sqlbi.com/p/introducing-dax-video-course/

Your total price calculation will be something along the lines of

Total Price =
SUMX ( 'Table A', 'Table A'[Quantity] * RELATED ( 'Table B'[Price] ) )

Nice, thank you @jdbuchanan71 

 

Also appreciate the added value with the vido course link!

Anonymous
Not applicable

Hi jdb,
I wrote dax formal but error
dosnt have a relationship to any table avaiabme in the current context.

my question how give relationship
date and isin columm availble in both table
i have try create relationship its many to many relationship showing my power bi desktop
and how to give two column relationship table
thanks
shantha

Hello @Anonymous You need to watch the Introduction to DAX video I linked, it will help.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.