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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mbs2016
Helper I
Helper I

how to fill a new column with specific values from another column?

How can I fill a new column with specific values from another column... for example, Column 1 = number of days between start date and finish date.  Populate Column 2 with all that exceed 5 days.

1 ACCEPTED SOLUTION

Thank you for the prompt response!

 

Ultimatley, what I'm trying to show is a report that details all items that are considered overdue, with some type of filter that would be able to slice items past due broken out by range of 'days overdue'... For example "All items 1-7 days overdue", "All items 8-14 days overdue", etc.

 

I originally created a "Days Overdue" function/column using the following:

 

Days Overdue = DATEDIFF(V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE], TODAY(), DAY)

 

But I can't seem to figure how to incorporate this with the above.

 

The Second piece, would be to show the number of items overdue by quarter.

 

Here is the function I created based off of the suggestion

 

Column = IF(V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE]< 3/31/2016, V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE], VALUE())

 

Ultimatley, I'm trying to fill this column with all date values that fall between 1/1/2016 and 3/31/2016.

 

 

View solution in original post

2 REPLIES 2
Seth_C_Bauer
Community Champion
Community Champion

@mbs2016 You can use a DAX function in a Calculated column.

Right click table - add column

Column = IF(Table1[Column1] > 5, Table1[Column1], BLANK())


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thank you for the prompt response!

 

Ultimatley, what I'm trying to show is a report that details all items that are considered overdue, with some type of filter that would be able to slice items past due broken out by range of 'days overdue'... For example "All items 1-7 days overdue", "All items 8-14 days overdue", etc.

 

I originally created a "Days Overdue" function/column using the following:

 

Days Overdue = DATEDIFF(V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE], TODAY(), DAY)

 

But I can't seem to figure how to incorporate this with the above.

 

The Second piece, would be to show the number of items overdue by quarter.

 

Here is the function I created based off of the suggestion

 

Column = IF(V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE]< 3/31/2016, V_MP_REP_INVOICES_OVERDUE[RDOC_DUE_DATE], VALUE())

 

Ultimatley, I'm trying to fill this column with all date values that fall between 1/1/2016 and 3/31/2016.

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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