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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate multiple columns

Hello Experts,

 

I am new to DAX queries. I am trying to calculate following fields, but unable to do so.

 

Column AColumn BColumn CColumn D
85393021

 

my goal is to calculate like this,

 

ColumnA + Column B + Columm C / Column D

 

Would be great help if you could help me with this

 

regards

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello Ankit,

 

Thanks for your response. I was able to derive accrurate figure based on the script mentioned below. Not sure why.

 

Instead, i wrote below one and got the correct answer

 

divide(Table[Column1] + Table[Column2] + Table[Column3], Table[Column4])

 

regards

View solution in original post

3 REPLIES 3
AnkitKukreja
Super User
Super User

Hi @Anonymous 

 

Please use this. I've shared the output below.

DIVIDE( SUMX( 'Table' , 'Table'[Column1] + 'Table'[Column2] + 'Table'[Column3] ) , 
        SUMX( 'Table' , 'Table'[Column4] ) )

Capture.JPG
 
Thanks,
Ankit Kukreja
For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
Anonymous
Not applicable

Hello Ankit,

 

Thanks for your response. I was able to derive accrurate figure based on the script mentioned below. Not sure why.

 

Instead, i wrote below one and got the correct answer

 

divide(Table[Column1] + Table[Column2] + Table[Column3], Table[Column4])

 

regards

Yeah both would work. There are lot of scenarios where multiple solutions are possible.
I'm glad that you were able to solved it.

 

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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