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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Calculate percentage based on columns of two separate tables

i have two separate tables connected by a common column. i want to calculate percentage based on two columns one from each of these columns but i am unable to get correct values when creating a new coulmn with formula in 2nd table.

 

when i am selecting column from table and selecting sum in its properties then it is giving correct results.

 

uiit3155_0-1592993828818.pnguiit3155_1-1592993856527.png

but when i am using formula to create custom column then it is giving incorrect details. below is the formula

 

uiit3155_2-1592993951760.png

below is the table

 

uiit3155_3-1592994002980.png

i want to have same value for "column 2" which is of EAC for all the rows. is there any way to achieve this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think it should a new Measure. I doubt you create a new column

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I think it should a new Measure. I doubt you create a new column

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak Thanks...Measure worked. can you please let me know when we should go with Measure and when we should go with Column?

@Anonymous , Calculated column basically becomes part of your table and that will be calculated each time after data load at row level.

You can any assume like  Excel column formula

Whereas Measure is calculated at run time and the context of the row is based on data getting grouped

Pivot table calculation

 

Refer this document

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.