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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
ThomasWeppler
Impactful Individual
Impactful Individual

I only want my date filter to affect closed tasks

Hi power Bi community

I have a table [Tasks] with the following columns. 


Index (number): An index

taskid (number): a uniq number for each task

Isdeleted (true/false): is the task deleted

isdeleted date (date): the date the task was deleted. It shows blank if the task is still active.

 

I want a report that shows all the active tasks and the deleted tasks in the selected periode.

 

Does people have any idea of how they would solve this in DAX or M?

All help is greatly appreciated.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ThomasWeppler ,

I will show you the sample data first:

vjunyantmsft_0-1700552895040.png

You can then use the following two DAXs to create two new tables that extract the True and False records respectively:

Mark_False = 
FILTER(
    'Tasks',
    'Tasks'[Isdeleted] = FALSE
)
Mark_True = 
FILTER(
    'Tasks',
    'Tasks'[Isdeleted] = TRUE
)

vjunyantmsft_1-1700553023038.png

Then I created a date table:

Table = CALENDAR(DATE(2023,1,1), TODAY())

vjunyantmsft_2-1700553072991.png

Create a relationship between the date table and the Isdeleted date in the table Mark_True:

vjunyantmsft_3-1700553110288.png
Create a slicer using the date table you created:

vjunyantmsft_4-1700553296244.png


Best Regards,

Dino Tao

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @ThomasWeppler ,

I will show you the sample data first:

vjunyantmsft_0-1700552895040.png

You can then use the following two DAXs to create two new tables that extract the True and False records respectively:

Mark_False = 
FILTER(
    'Tasks',
    'Tasks'[Isdeleted] = FALSE
)
Mark_True = 
FILTER(
    'Tasks',
    'Tasks'[Isdeleted] = TRUE
)

vjunyantmsft_1-1700553023038.png

Then I created a date table:

Table = CALENDAR(DATE(2023,1,1), TODAY())

vjunyantmsft_2-1700553072991.png

Create a relationship between the date table and the Isdeleted date in the table Mark_True:

vjunyantmsft_3-1700553110288.png
Create a slicer using the date table you created:

vjunyantmsft_4-1700553296244.png


Best Regards,

Dino Tao

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.