Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
3508026
Helper II
Helper II

Quarter over Quarter calculation - Display Quarters missing

Good morning,

I'm using this calculation to obtain the %churn QoQ.
I have two columns ROLLING_Q which shows the quarters and SEG_MONTH which shows the end of the months of ROLLING_Q.

But the %Churn QoQ calculation disappears if I use ROLLING_Q in the visual elements.
Could you help me solve this, as I want to use the ROLLING_Q field instead of SEG_MONTH?

3508026_0-1757283784927.png

%Churn_QoQ =
VAR CurrentMonth =
    CALCULATE(
        MAX(DATA[SEG_MONTH]),
        VALUES(DATA[ROLLING_Q])
    )
VAR PrevMonth = EDATE(CurrentMonth, -3)
VAR LostDecline_Current =
    CALCULATE(
        SUM(DATA[Total Customers]),
        DATA[BAT_STATUS] IN { "Lost", "Decline" },
        DATA[SEG_MONTH] = CurrentMonth
    )
VAR LostDecline_Prev =
    CALCULATE(
        SUM(DATA[Total Customers]),
        DATA[BAT_STATUS] IN { "Lost", "Decline" },
        DATA[SEG_MONTH] = PrevMonth
    )
RETURN
IF(
    NOT ISBLANK(LostDecline_Prev),
    DIVIDE(LostDecline_Current - LostDecline_Prev, LostDecline_Prev),
    BLANK()
)
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


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

View solution in original post

9 REPLIES 9
v-nmadadi-msft
Community Support
Community Support

Hi @3508026 ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions  provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @3508026 

May I check if this issue has been resolved? If not, Please feel free to accept the request we raised to access your data.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @3508026 ,


I wanted to check if you had the opportunity to check the access requests me and the community members raised to reproduce your exact scenario. Please feel free to contact us if you have any further questions.


Thank you.

3508026
Helper II
Helper II

Hi @Ashish_Mathur 
Here is the link: PBI_Rolling_Q 
I appreciate your help

Access Denied message.


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

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

One of ways is to create a separate calendar table and create a relationship with the fact table.

And, I tried to use OFFSET DAX function in the measure.

 

OFFSET function (DAX) - DAX | Microsoft Learn

 

Jihwan_Kim_0-1757300778612.png

Jihwan_Kim_0-1757300558365.png

Lost Decline customers count: = 
CALCULATE (
    SUM ( data[customers_count] ),
    'status'[bat_status] IN { "lost", "decline" }
)
prev: = 
CALCULATE (
    [Lost Decline customers count:],
    OFFSET (
        -1,
        ALL ( 'calendar'[Rolling_Q], 'calendar'[SEG_MONTH] ),
        ORDERBY ( 'calendar'[SEG_MONTH], ASC )
    )
)
QoQ: = 
DIVIDE([Lost Decline customers count:] - [prev:], [prev:])

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you @Jihwan_Kim 
My table does not contain a date field to display the months included in ROLLING_Q; the only field related to a date is SEG_MONTH. I previously created a table to assign those two and create a relationship so that I could use ROLLING_Q, but it did not work.
I have shared the file; could you take a look at it?. Here is the link:
PBI_Rolling_Q  

Jihwan_Kim_0-1757386060648.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.