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