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 September 15. Request your voucher.

Reply
Universe24
Frequent Visitor

how to make selected column value 0

Hello Experts,

 

I have below a sample table  I want to make 0 for "marketing".  

The table name is team details.

 

Row headerspends
Salary23000
marketing2500
team outing 300
team dinner2500
1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

i'm unsure of the purpose of this but to just change the spends amount of the marketing team you could create a new calculated column in DAX with an if statement:

 

Column = if('team details'[Row header] = "marketing", 0, 'team details'[spends])
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

i'm unsure of the purpose of this but to just change the spends amount of the marketing team you could create a new calculated column in DAX with an if statement:

 

Column = if('team details'[Row header] = "marketing", 0, 'team details'[spends])
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Hi Doleary,

 

Thanks am able to get the output. Now next step is to insert some values into the marketing rows(i have nearly 200 rows in orginal table ), from another table called the marketing table. Please help me.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors