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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
giangnguyen
Frequent Visitor

Filter reports last month, during the week.

Dear All,

Currently I have the date column data as shown in the yellow image below, I need to filter the data for the last month, last week.

filtter month.PNG

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @,

 

 

  1. You can use the new filter experience as below:

More info please refer : https://docs.microsoft.com/en-us/power-bi/power-bi-report-filter-preview

001.png

2. Alternatively, you can use below measures:

Values of last 7 days = CALCULATE(MAX(Table1[Value]),FILTER(Table1,Table1[Date]>=[today]-7))
Values of last 30 days = CALCULATE(MAX(Table1[Value]),FILTER(Table1,Table1[Date]>=[today]-30))

002.png

Best regards,

Dina Ye

Community Support Team _ Dina Ye
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

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @,

 

 

  1. You can use the new filter experience as below:

More info please refer : https://docs.microsoft.com/en-us/power-bi/power-bi-report-filter-preview

001.png

2. Alternatively, you can use below measures:

Values of last 7 days = CALCULATE(MAX(Table1[Value]),FILTER(Table1,Table1[Date]>=[today]-7))
Values of last 30 days = CALCULATE(MAX(Table1[Value]),FILTER(Table1,Table1[Date]>=[today]-30))

002.png

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @giangnguyen 

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

@v-diye-msft 

I have applied but not as expected, the data does not appear as expected, or I made a mistake somewhere. Currently the image below shows the total data and I want to filter as required, maybe you just add the action.

tong.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors