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

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

Reply
RilwanFlame
Helper III
Helper III

DAX quarter Calculation Difference

Hi All-- 

 I would expect the highlighted amount to be the difference between Q4 & Q1 = 29,251 – 28,723 = $528. 

 

Below is my code.

RilwanFlame_0-1651588410852.png

 

QoQ $ $ =
IF(
    ISFILTERED('ICC Reports'[Date]),
    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
    VAR __PREV_QUARTER = CALCULATE(SUM('ICC Reports'[$]), DATEADD('ICC Reports'[Date].[Date], -1, QUARTER))
    RETURN
        DIVIDE(SUM('ICC Reports'[$]) - __PREV_QUARTER, __PREV_QUARTER)
)
 
Thank you
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

That's working out the percentage. Try

QoQ $ $ =
IF(
    ISFILTERED('ICC Reports'[Date]),
    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
    VAR __PREV_QUARTER = CALCULATE(SUM('ICC Reports'[$]), DATEADD('ICC Reports'[Date].[Date], -1, QUARTER))
    RETURN
        SUM('ICC Reports'[$]) - __PREV_QUARTER
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

That's working out the percentage. Try

QoQ $ $ =
IF(
    ISFILTERED('ICC Reports'[Date]),
    ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column."),
    VAR __PREV_QUARTER = CALCULATE(SUM('ICC Reports'[$]), DATEADD('ICC Reports'[Date].[Date], -1, QUARTER))
    RETURN
        SUM('ICC Reports'[$]) - __PREV_QUARTER
)

Thankk you so much.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.