cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bimstella
New Member

Compare current quarter against previous quarter in the same year

How do i calculate the difference between current quarter and previous quarter in the same year?

 

2018-09-14_14h52_05.png

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Johanno
Responsive Resident
Responsive Resident

Credit to v-sihou-msft though I can't find the thread right now:

 

1. Create an Index column using Edit Queries, Add column, Index column from 1.

2. Create a calculated column using:

Price difference to the row above = Dates[Price]-IF(Dates[Index]=0;Dates[Price];LOOKUPVALUE(Dates[Price];Dates[Index];Dates[Index]-1))

 

i am trying to do this in powerpivot and do not know how to create an index column... not sure what it means by "Add column, Index column from 1.".

 

Thanks!

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors