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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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