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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Pok
Regular Visitor

Sum Two Cols

Hi Im trying to create a sum across two columns when col a is a measure and col b a derived column with a 1 or 0 value.

 

NewColumn =

      SUM(table1[a])        Measure col built from some pre filtering  + distinct has taken place.

    +

     SUM(table2[b])      Regaular column contains either 1 or 0 based on some criteria.

 

When you enter the dax formula the measure col a is invisible to the DAX formula. I have tried using sumx as a work around but no luck.

How do you create a sum across two fields from different tables when one is a measure and the other is just a derived column

 

I get the error This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min max count or sum to get a single result.

 

 

2 REPLIES 2
jaideepnema
Solution Sage
Solution Sage

Hi @Pok ,

Why dont you try creating two measures ie: one that was previously built and the one created to sum the column and the measure ?

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

jaipal
Resolver III
Resolver III

@Pok You need to make sure both columns has the data type and try again

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.