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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mpettigrew
Frequent Visitor

Sum of new column created from two separate columns

Hello, I am struggling, and I am new to Power BI.

I want to do something like this:

I have two columns: "Revenue TXN" and "Revenue CAN"

I want to create a new column called "REVENUE MIX" that basically merges these two columns, showing "Revenue TXN" if <> 0, otherwise showing "Revenue CAN"

I want to use this new "REVENUE MIX" column to report totals numbers.

Below is an example of what I'm trying to do in a table:

 
Invoice DateRenvenue CANRevenue TXNRevenue Mix
March200 200
April100 100
May655050
June32.52525
July400 400
August390300300
September260200200
October500 500
November100 100
December130100100
 2177.56751975
 

Can anyone help!?

Thanks.

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @mpettigrew ,

Maybe you can do like this:

Revenue Mix = 
IF(
    [Revenue TXN] <> 0,
    [Revenue TXN],
    [Renvenue CAN]
)

a6.PNG

Best regards,
Lionel Chen

 

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

The solution suggested did not work.  I'm not sure why. 

However, I have gotten it working now.  I had to create 3 separate measures to have the totals add up correctly:

1) USD TOTAL = CALCULATE ( SUM ( [REVENUE TXN], [CURRENCY] = "USD" )

2) CAN TOTAL = CALCULATE ( SUM ( [REVENUE CAN], [CURRENCY] = "CAN" )

3) REVENUE MIX = [USD TOTAL] + [CAN TOTAL]

Thanks for your help.

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 Solution Authors