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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to make this filter?

I have a table, the time column is a period of a week.

So we have the time column like

period 1-week 1,...

 

How to make the corresponding filter like:

period and week

-----------------------------------------------

|period 1-week 1: 1/1/2023-1/7/2023         |

|period 1-week 2:  1/8/2023-1/14/2023      |

|period 1-week 3:  1/15/2023-1/21/2023    |

|period 1-week 4: 1/22/2023-1/28/2023     |

|period 2-week 5: 1/29/2023-2/4/2023       |

|..............................................................                   |

 

 

 

period number actually is the number of month.

 

How to make this filter?

 

1 ACCEPTED SOLUTION
Igna
Resolver III
Resolver III

Hello,

 

You can create a calculated column with that kind of formula : 

Custom Filter = 'YourTable'[period] & "-week " & 'YourTable'[week] & ": " & 
FORMAT(STARTOFMONTH('YourTable'[Date]), "M/d/yyyy") & " - " & FORMAT(ENDOFMONTH('YourTable'[Date]), "M/d/yyyy")

 

Then use it to filter your data.

 

Hope it helps.

 

Igna

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you, @Igna 

Igna
Resolver III
Resolver III

Hello,

 

You can create a calculated column with that kind of formula : 

Custom Filter = 'YourTable'[period] & "-week " & 'YourTable'[week] & ": " & 
FORMAT(STARTOFMONTH('YourTable'[Date]), "M/d/yyyy") & " - " & FORMAT(ENDOFMONTH('YourTable'[Date]), "M/d/yyyy")

 

Then use it to filter your data.

 

Hope it helps.

 

Igna

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors