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
jasminwing
Frequent Visitor

New Column: Show clients with activity within time period

 

Hello,

 

I would like to set up a new column or measure to show only clients that have been active in the last 3 months and 6 months.

 

I would like to do this as a column or measure so the figures are always up to date, rather than filtering each time.

 

Please could someone advise what the formula would be for the below. The formula can simply enter the text 'YES' if the condition is met.

 

CLIENT[LAST ACTIVITY DATE] is EARLIER THAN 3 MONTHS BEFORE TODAY'S DATE

 

and

 

CLIENT[LAST ACTIVITY DATE] is EARLIER THAN 3 MONTHS BEFORE TODAY'S DATE

 

Thank you

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @jasminwing,

First create a colculated column using the following formula.

 

Signal=IF(AND(CLIENT[LAST ACTIVITY DATE] >=DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())),CLIENT[LAST ACTIVITY DATE] <=TODAY()),"3month",IF(CLIENT[LAST ACTIVITY DATE] >=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),"3-6month","NO"))


Then create a Table visual including the clients field. Create a related slicer including Signal measure. When you select the "3month", "3-6month" in the slicer, you will get only clients that have been active in the last 3 months and 6 months.

If you have other issues, don't hesitate to let me know.

Best Regards,
Angelia




View solution in original post

1 REPLY 1
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @jasminwing,

First create a colculated column using the following formula.

 

Signal=IF(AND(CLIENT[LAST ACTIVITY DATE] >=DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())),CLIENT[LAST ACTIVITY DATE] <=TODAY()),"3month",IF(CLIENT[LAST ACTIVITY DATE] >=DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),"3-6month","NO"))


Then create a Table visual including the clients field. Create a related slicer including Signal measure. When you select the "3month", "3-6month" in the slicer, you will get only clients that have been active in the last 3 months and 6 months.

If you have other issues, don't hesitate to let me know.

Best Regards,
Angelia




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!

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.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.