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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

IF function with Custom Column: Dossier active on specific date( reference date)

Hello,

 

I tried to find some direction on de PB forum on this subject but i could not find it.

 

Question: I have  a table with dossiers, begindate and enddate.

I want to know if a dossier was active (active = no enddate or enddate after specific date)

 

The specific dates(reference date) are:

1-7-2016 

1-7-2019

 

Table Dossier:

 

DossiernumberBegindateEndate
11-3-201615-7-2016
21-5-20152-6-2016
35-3-20181-8-2019
41-9-20161-8-2019
52-3-20165-7-2016
61-1-20191-9-2019
71-7-20165-5-2017
85-5-20172-2-2018
91-1-201931-12-2019
101-7-20161-7-2019

 

The answer in Excel is: 0 = NO 1 = YES

 

DossiernumberBegindateEndate1-7-20161-7-2019
11-3-201615-7-201610
21-5-20152-6-201600
35-3-20181-8-201901
41-9-20161-8-201901
52-3-20165-7-201610
61-1-20191-9-201901
71-7-20165-5-201710
85-5-20172-2-201800
91-1-201931-12-201901
101-7-20161-7-201911

 

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

So according to logic "active = no enddate or enddate after specific date", why the flag is 0 when EndDate is "2-6-2016"? Could you please clarify the logic of this requirement?

 

Regards,

Jimmy Tao

Anonymous
Not applicable

@v-yuta-msft 

 

Thank you for your reply.
In my example i have written down all possible combinations. We are counting Dossiers for evaluating a possbile growth in dossiers over time. As reference date we are evaluating period 1-7-2016 against 1-7-2019. Which dossiers where active on reference date 1-7-2016? In excel i did it by hand. I put 0 at non active dossiers and 1 at actieve ones. The filter in excel showed 0 and 1 , no blanks. At this point i am certain i did not miss any combination.

If now The calculation is done ln power bi i can match my excel result against it. So for now it is great of you could help me with only the active results.

The dossiers with an end date before 1-7-2016 are then to be blank. The same for dossiers with an end date before 7-2019. no calculation needed for inactieve dossiers.

Answering your question:
The 0 at end date 2-6-2016 was a check mechanisme for The human eye in excel.

Anonymous
Not applicable

Thank you for your reply.
In my example i have written down all possible combinations. We are counting Dossiers for evaluating a possbile growth in dossiers over time. As reference date we are evaluating period 1-7-2016 against 1-7-2019. Which dossiers where active on reference date 1-7-2016? In excel i did it by hand. I put 0 at non active dossiers and 1 at actieve ones. The filter in excel showed 0 and 1 , no blanks. At this point i am certain i did not miss any combination.

If now The calculation is done ln power bi i can match my excel result against it. So for now it is great of you could help me with only the active results.

The dossiers with an end date before 1-7-2016 are then to be blank. The same for dossiers with an end date before 7-2019. no calculation needed for inactieve dossiers.

Answering your question:
The 0 at end date 2-6-2016 was a check mechanisme for The human eye in excel.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.