cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jracer007 Member
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.

My data source: https://docs.google.com/spreadsheets/d/1jvF4xmXOE_TdBfGvwsJNWVqFMpUcoht5wGm_9Gf9hJI/edit?usp=sharing

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Comparative last 30 days

@jracer007,

 

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.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Comparative last 30 days

@jracer007,

 

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.
jracer007 Member
Member

Re: Comparative last 30 days

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

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

jracer007 Member
Member

Re: Comparative last 30 days

Can not with measure?

Community Support Team
Community Support Team

Re: Comparative last 30 days

@jracer007,

 

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.

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

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

January 2020 Community Highlights

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

Difinity Conference

Difinity Conference

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

Top Solution Authors
Top Kudoed Authors