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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
eliasayyy
Memorable Member
Memorable Member

add column, if a platform has blank or 0 for the past 10 consecutive days, from today, then inactive

hello everyone i have a table

Date                 Platform              Calls             Minutes
12/27/2022A10392261
12/28/2022A25452420
12/29/2022A11652538
12/30/2022A22754195
12/31/2022A28365400
1/1/2023A  
1/2/2023A  
1/3/2023A  
1/4/2023A  
1/5/2023A  
1/6/2023A  
1/7/2023A  
1/8/2023A  
1/9/2023A17188317
1/10/2023A26156316
1/11/2023A23747111
1/12/2023A12744468
1/13/2023A13907473
1/14/2023A24940469
1/15/2023A10638514
1/16/2023A28624150
1/17/2023A15669368
1/18/2023A14265489
12/27/2022B26698168
12/28/2022B16998148
12/29/2022B12886436
12/30/2022B26203477
12/31/2022B13611324
1/1/2023B22950404
1/2/2023B23478225
1/3/2023B17930198
1/4/2023B12520529
1/5/2023B16147218
1/6/2023B  
1/7/2023B  
1/8/2023B  
1/9/2023B  
1/10/2023B  
1/11/2023B  
1/12/2023B  
1/13/2023B  
1/14/2023B  
1/15/2023B  
1/16/2023B  
1/17/2023B  
1/18/2023B  

 

i want to add a column that shows if call and minutes have been blank or 0 for the past 10 or more consecutive days from today, then they are inactive

 

result expected:

Date                   Platform             Calls           Minutes           Inactive
12/27/2022A10392261No
12/28/2022A25452420No
12/29/2022A11652538No
12/30/2022A22754195No
12/31/2022A28365400No
1/1/2023A  No
1/2/2023A  No
1/3/2023A  No
1/4/2023A  No
1/5/2023A  No
1/6/2023A  No
1/7/2023A  No
1/8/2023A  No
1/9/2023A17188317No
1/10/2023A26156316No
1/11/2023A23747111No
1/12/2023A12744468No
1/13/2023A13907473No
1/14/2023A24940469No
1/15/2023A10638514No
1/16/2023A28624150No
1/17/2023A15669368No
1/18/2023A14265489No
12/27/2022B26698168Yes
12/28/2022B16998148Yes
12/29/2022B12886436Yes
12/30/2022B26203477Yes
12/31/2022B13611324Yes
1/1/2023B22950404Yes
1/2/2023B23478225Yes
1/3/2023B17930198Yes
1/4/2023B12520529Yes
1/5/2023B16147218Yes
1/6/2023B  Yes
1/7/2023B  Yes
1/8/2023B  Yes
1/9/2023B  Yes
1/10/2023B  Yes
1/11/2023B  Yes
1/12/2023B  Yes
1/13/2023B  Yes
1/14/2023B  Yes
1/15/2023B  Yes
1/16/2023B  Yes
1/17/2023B  Yes
1/18/2023B  Yes



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @eliasayyy 

 

Please try

 

New calculated column = 

If(

Calculate(

count(table[platform]),

And(table[calls] = blank(),table[minutes] =blank()),

Datesbetween(table[date],today() -10,today()),

Allexcept(table,table[platform])

)>=10,

"Yes",

"No"

)

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello @eliasayyy 

 

Please try

 

New calculated column = 

If(

Calculate(

count(table[platform]),

And(table[calls] = blank(),table[minutes] =blank()),

Datesbetween(table[date],today() -10,today()),

Allexcept(table,table[platform])

)>=10,

"Yes",

"No"

)

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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