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

QoQ Calculation for Fiscal Quarter

Hi, I have fiscal Year/quarter starting from Feb, and in following format : 2018Q1 2018Q2 please help me on QoQ calculation, previous quarter and dateadd function doesnt work on custom calendar which i created according to my organization needs......it should display in following format: Quarer Sales Last Quarter 2018Q1 100 2018Q2 200 100 2018Q3 300 200
2 ACCEPTED SOLUTIONS
v-lili6-msft
Community Support
Community Support

hi, @rohit_sharma2

Does your custom calendar have no date column, just like this:

7.JPG

If so, you could try this way as below:

Step1:

Add a rank column for fiscal Year/quarter

rank = RANKX('calendar','calendar'[ fiscal Year/quarter],,ASC )

8.JPG

Note: You could add the rank column for the custom calendar according to the custom.

Step2:

Create a relationship between data table and custom calendar table

Step3:

Use this formula to add a measure

Measure = CALCULATE(SUM('Table'[value]), FILTER(ALL('calendar'),'calendar'[rank]=MAX('calendar'[rank])-1))

Result:

9.JPG

 

and here is pbix file, please try it.

If it is not your case, please share sample pbix file or some data sample and expected output. Do mask sensitive data before uploading

 

 

Best Regards,

Lin

 

 

 

 

 

Community Support Team _ Lin
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

Hi Lin,

 

I tried your solution again, and it worked.

Thank youuuuuuuuuuuuuuuuuuu so muchhhhhhhhhhhhh.

 

Now other issue is apple to apple comparison, if in current quarter only 6 weeks have passed so wish to compare this with last quarter with 6 weeks data only.....please help me again.......

 

Regards

Rohit

View solution in original post

10 REPLIES 10

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.