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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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