cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper IV

## Filter date by last 30 days

All,

I have this date format and I would like to only see the past 30 days for Labor billed in my report.

Does anyone know how I can create a measure for past 30 days?

8 REPLIES 8
Memorable Member

Hi,

You could use below measure :

Last30DaysValue = CALCULATE(sum(Sheet120[Fee]), FILTER(sheet120, Sheet120[Date] > TODAY()-30))

Appreciate your Kudos and please mark it as a solution if it helps you

Mahyartf
Helper IV

I tried this and no data is appearing in my visual. This is the Date field. I want the SUM of labor billed in the past 30 days

Memorable Member

Did you try to create the measure on Date field ?

And would you please share the result of the new measure you created ?

Mahyartf
Super User

Hi,

Share some data and show the expected result.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Helper IV

I would like the SUM of Labor Billed for the past 30 days

Super User

Hi,

In the Query Editor, seperate the Time from the End Date column.  Create a Calendar Table and a relationship (Many to One and SIngle) from the End Date column to the Calendar Table.  Wrie these measure

LB = sum(Data[Labor billed])

LB in last 30 days = calculate([LB],datesbetween(calendar[Date],today()-29,today()))

Drag the LB in last 30 days measure to a card visual.

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Helper IV

can you show an example of this?

Super User

Hi,

Regards,
Ashish Mathur
http://www.ashishmathur.com

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors