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

Date filter

I have 4 columns called Date created , Date approved, Date assigned, Date completed.
So Date created shows details of  Idea Status
Date approved shows details of  To do Status, 
Date assigned shows details of  Doing Status,
Date Completed shows details for Done Status
So i have requirement , 

  • When a completed date range is selected, it should show all data within that completed date range, For example if I pick 1st Jan 2019 as start date and 30th March 2019 as end date, it should show me all ideas, under each status within this date range, irrespective of if they are in Idea, ToDo, Doing, Done status. Meaning, do not show only completed ideas, but all ideas in this date range.

Please help me one this 
How can this achieved

 

 

1 ACCEPTED SOLUTION
AnthonyTilley
Solution Sage
Solution Sage

Instead of using the Complete date as your filter create a new date filed that is the most recent date of the 4.

 

AnchorDate =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),cre,app),ass),com)

RETURN check
 
you can also use this to create a Status Filed that can beused inside you visual.


Status =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),"Idea","To do"),"Doing"),"Done")

RETURN check




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
AnthonyTilley
Solution Sage
Solution Sage

instead of using the date complete use a diffrent date colunm that shows the most recent date

AnchorDate =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),cre,app),ass),com)

RETURN check

and use the same function to return a status to split in your visual

Status =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),"Idea","To do"),"Doing"),"Done")

RETURN check




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




AnthonyTilley
Solution Sage
Solution Sage

instead of using the date complete use a diffrent date colunm that shows the most recent date
 
AnchorDate =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),cre,app),ass),com)

RETURN check

and use the same function to return a status to split in your visual 

Status =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),"Idea","To do"),"Doing"),"Done")

RETURN check




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




AnthonyTilley
Solution Sage
Solution Sage

instead of using the date complete use a diffrent date colunm that shows the most recent date
 
AnchorDate =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),cre,app),ass),com)

RETURN check

and use the same function to return a status to split in your visual 

Status =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),"Idea","To do"),"Doing"),"Done")

RETURN check




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




AnthonyTilley
Solution Sage
Solution Sage

Instead of using the Complete date as your filter create a new date filed that is the most recent date of the 4.

 

AnchorDate =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),cre,app),ass),com)

RETURN check
 
you can also use this to create a Status Filed that can beused inside you visual.


Status =

Var com = Table1[Complete]
Var ass = Table1[Assigned]
var app = Table1[Approved]
Var cre = Table1[Created]

var check = if(com = blank(),if(ass = blank(), if(app = BLANK(),"Idea","To do"),"Doing"),"Done")

RETURN check




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.