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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JackReagan
Frequent Visitor

Custom Column Power BI

I am hoping the collective minds can help me with a simple example using the custom columns in Power BI. 

 

I have a rather simple data set which has three columns; ProjectID, ModelID and TotalAmount. Project ID is a unique ID, ModelID has two values Rem and Orig and Total Amount has various amount values.  I want to create a custom column that will display the Total Amounts for only those Total Amounts that also have Model ID = Orig.  

 

Data set example:

Project ID         ModelID             Total Amount

123                   Rem                    $400.00

123                   Orig                    $780.00

234                   Rem                    $559.00

234                   Orig                    $700.00

 

Custom column should display values for only those records that have ModelID = "Rem"

 

Report Example with Custom column

Project ID            Custom column

123                      $400.00

234                      $559.00

 

2 ACCEPTED SOLUTIONS
RolandsP
Resolver IV
Resolver IV

You should write following DAX formula:

 

Custom column = IF (TableName[ModelID] = "Rem", TableName[Total Amount], Blank() )

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

 

Why do you wan to use a Custom Column.  Use a measure instead.  Drag Project ID to the row labels and ModelID to the filter section.  Select the criteria as Rem.  Write the following measure

 

=SUM(Data[Total Amount])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

 

Why do you wan to use a Custom Column.  Use a measure instead.  Drag Project ID to the row labels and ModelID to the filter section.  Select the criteria as Rem.  Write the following measure

 

=SUM(Data[Total Amount])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Ashish

 

You were right.  Once I figured out the measure functionality it seemed to be the right path.  Whats great about DAX is that you can do one thing many ways.  I appreciate your help. 

 

Tom

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
RolandsP
Resolver IV
Resolver IV

You should write following DAX formula:

 

Custom column = IF (TableName[ModelID] = "Rem", TableName[Total Amount], Blank() )

Thanks Roland.  Your DAX formula helped me create my measure.  I appreciate your help. 

 

 

JackReagan
Frequent Visitor

I meant to say ... the Total Amounts for only those Total Amounts that also have Model ID = Rem.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.