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
nerdyplayer
Helper I
Helper I

making a new custom column based on filters and If statement

nerdyplayer_0-1719839989570.png

Trying to filter something out, but not working as i want yet.

i have a column that has milestones or task with an associate date, and status.

 

I am trying to build another column where 

Filter to only the cell that says milestone.

if it says closed, closed.

else if, today() <=30 "due soon"

if  it will say ontrack,

 

got the bulk of it working, but the filter is not. End result is to do a countrow on a table to show many many milestones are due soon vs on track. 

Overdue soon = /*FILTER(EPMT_Milestones,[Milestone_Task]= "Milestone")*/
if(EPMT_Milestones[Status] = "Closed","Closed", if(EPMT_Milestones[Current_Scheduled_End_Date]-TODAY()<=30,"overdue soon","On Track"))

 

2 REPLIES 2
Anonymous
Not applicable

Hi @nerdyplayer 

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster?
If not, could you please share your data(exclude sensitive data), or create some sample data, so that we can help you bette.
Thank you very much for your kind cooperation!

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.