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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ehJH40
Regular Visitor

New Custom Column Conditionally Set based on Existing Column and Rows

I'm trying create a new column.  The new column should equal the existing column "Value" if the existing column "Adder" field is blank, but if it's not blank it should equal Value of current row - Value of row matching CaseID, Year, Month, Iteration, and where the value in Input_Name = the value in Adder.  For Example, in the new column for row 1, the new column value should be -0.088 (rounded)....taking the value - the corresponding value of the input name Henry Hub since that's the description in Adder. In row 7 it should simply = the value in the Value field 2.5494...

 

ehJH40_0-1683146726404.png

 

4 REPLIES 4
Kannan_n
Advocate I
Advocate I

Hi @ehJH40 

 

Can you give me the Sample file i will work and let you know what is the problum

Thanks/Regards 

Kannan. N

not seeing the option to upload a file ???

Share with your onedrive or drive 

nah.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.