cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mbs2016 Regular Visitor
Regular Visitor

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

Accepted Solutions
mbs2016 Regular Visitor
Regular Visitor

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

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
Super User
Super User

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

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

Right click table - add column

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


Near SE WI? Join our PUG Milwaukee Brew City PUG
mbs2016 Regular Visitor
Regular Visitor

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

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 254 members 2,333 guests
Please welcome our newest community members: