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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
lmondavi
Frequent Visitor

Creating a measure to sum different columns based on row value

Hi, I have a Funnel table with 3 different $ value columns (SM_M1, SM_M2, and SM_M3). I have an employee table which is unrelated to the Funnel table. I want to create one measure that will sum one of the Funnel columns for each person, but which column to sum depends on criteria within the People table. I tried the below formula, however there are many records in the people table that have the same criteria, so this does not work. I think I am missing something simple. Thank you for your help!

 

HWProjection$ = if(VALUES(People[Function])="Segment Manager" && VALUES(People[Segment Alias])="EA",sum(Funnel[SM_M1]),if (VALUES(People[Function])="Segment Manager",sum(Funnel[SM_M2]),sum(Funnel[SM_M3]))) 

1 ACCEPTED SOLUTION

Hi,

 

You may refer to my solution here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

Share your data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks, here is the data with expected resultCapture.JPG

Hi,

 

You may refer to my solution here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors