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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Not able t0 add measure value in to Custom column

Hi Experts,
I have a table as shown in the below:

Guruprasad_K_0-1600935872433.png


I'm trying to insert sum of 10+15+28 =53 in to Z5.

So i'm  trying to create new Custom Column like:
NEW= IF(Table[C2]="Z5",Tot_A,Table[Amt])


where, Tot_A= Calculate(SUM(Table[Amt]),Table[C1]="A")

 

PLEASE LET ME IF THIS IS POSSIBLE WITH DAX OR IS THERE A OTHER WAY?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a new column like

if([C2]="Z5",sumx(filter(Table, [C1]="A"),[Amt]),[Amt])

 

if this does not work

Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a new column like

if([C2]="Z5",sumx(filter(Table, [C1]="A"),[Amt]),[Amt])

 

if this does not work

Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you @amitchandak 
It Worked!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.