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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.