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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jj77
New Member

Is there a way to add numeric values of certain columns bast on conditions of different columns

For example, if column A, B, and/or C contains "4444" then combine Columns D+E+F.

 

Apologies, I am new to this and inexperienced with DAX funtions. Basically what I am wanting to to get is the total amount from columns D,E,F if the previous columns contain a certain number. Lets say columns A,B,C each had 4 options. Based on which ever option they pick, a quantity is entered. I want to know the total qty entered from each columns based on the individual option(s) they chose.

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you could use a calculated column with a nested if statement:

 

Column = IF('Table (9)'[A]=4444,CALCULATE(sum('Table (9)'[D]))+CALCULATE(sum('Table (9)'[E]))+CALCULATE(SUM('Table (9)'[F])),IF('Table (9)'[B]=4444,CALCULATE(sum('Table (9)'[D]))+CALCULATE(sum('Table (9)'[E]))+CALCULATE(SUM('Table (9)'[F])),IF('Table (9)'[C]=4444,CALCULATE(sum('Table (9)'[D]))+CALCULATE(sum('Table (9)'[E]))+CALCULATE(SUM('Table (9)'[F])),0)))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Assuming 4444 is a number field if it's text just put it in quote marks "4444"

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.