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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

How to add values from two similar columns (from two tables) into a new measure or column?

I have two tables; 1) Completed and 2) Cancelled or Deleted. Both tables have a column called WKFL_ID. I need to add the workflow id's from each table together to get a Total (total = completed + cancelled/deleted). I have a created a 1:1 relationship between the two tables on WKFL_ID columns. I don't know if this step was necessary or not.

 

To be a bit more specific, what I am looking for is the COUNT of WKFL_IDs from table 1 to be added to the COUNT of WKFL_IDs from table 2 = Total Count or SUM of the Counts (the new count of total). It should probably be the distinct counts from each table.

 

Please let me know if there is a DAX solution to this problem, or if you need more information. I am not able to post any files due to corporate firewall. 

 

Thanks!

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

May I ask if your problem has been solved. If the above reply was helpful, you may consider marking it as solution. If the problem is not yet solved, please feel free to ask us a question.

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Ashish_Mathur
Super User
Super User

Hi,

Create a thid table with all unique ID's.  Create a relationship (Many to One and Single) from the ID column of each of the 2 tables to this third table.  To your visual/slicer/filter, drag ID from the new table.  Create these measures

Measure 1 = countrows(Completed)

Measure 2 = countrows(Cancelled)

Measure 3 = [Measure 1]+[Measure 2]

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.