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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors