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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (11,045)