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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.