cancel
Showing results for
Did you mean:
Highlighted
Member

## Comparative last 30 days

Hello community,
Today I want to ask you for help to build a formula that allows me to compare the value of yesterday's day against that of 30 days ago.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Comparative last 30 days

To use measure, you could refer to DAX below.

```Measure =
LOOKUPVALUE ( Sheet1[Active Users], Sheet1[Date], MAX ( Sheet1[Date] ) - 30 )
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
Community Support Team

## Re: Comparative last 30 days

You may use LOOKUPVALUE Function to add calculated columns.

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

## Re: Comparative last 30 days

Could you help me please with the formula, I'm a novice in this

Frequent Visitor

## Re: Comparative last 30 days

Create new column

Previous Value = LOOKUPVALUE(Sheet1[Active Users],Sheet1[Date].[Date],Sheet1[Date].[Date]-30)

Change the -30 to however many days or parameterise it

Member

## Re: Comparative last 30 days

Can not with measure?

Community Support Team

## Re: Comparative last 30 days

To use measure, you could refer to DAX below.

```Measure =
LOOKUPVALUE ( Sheet1[Active Users], Sheet1[Date], MAX ( Sheet1[Date] ) - 30 )
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

#### Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors