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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kunal_mehta1
Helper I
Helper I

Dax Query or a different solution

Hi Team, I have this sample data where i have C Project and O project codes. The C and O Projects have dollar values like forecast, approval, spent, etc. Few C Projects have O Projects with the same last 4 digits for that related project. I have had the new column named Project O which has the O number in the row of C number wherever applicable else null. What i want is i want the values of C number and O number to be added....to show the sum of the two values. For example, C7088 has the dollar figures, O7088 has the dollar figures. I want to use Project O as a relationship maybe for the project code and have new columns which shows the sum of both the values in the row of C7088. Please refer to the example if that makes it clear

project O.PNG

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

DAX Calculated Column=IF(LEFT(Table[Project Code],1)="C",Table[ABC]+SUMX(FILTER(Table,Table[Project Code]="O"&MID(EARLIER(Table[Project Code]),2,4)),Table[ABC]))

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

DAX Calculated Column=IF(LEFT(Table[Project Code],1)="C",Table[ABC]+SUMX(FILTER(Table,Table[Project Code]="O"&MID(EARLIER(Table[Project Code]),2,4)),Table[ABC]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.