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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Mk60
Resolver I
Resolver I

Calculation for Quarter-over-Quarter change expressed in dollars, not as percentage?

I am using this calulation that was recomended by "New quick measure" in my model, and results are accurate, but only come as percent of change (%), and I need the change to be in dollars, (nominal variance). Please let me know if I can make change to this calculation to give me actual variances in balances, (numbers instead of % of change). Thank you so much!

Here's dax calculations I am using:

QoQ Change GL =
VAR __PREV_QUARTER = CALCULATE(
    SUM('Query1'[GL_BALANCE]),
    DATEADD(
        'Query1'[POSTING_DATE].[Date],
        -1,
        QUARTER
    )
)
RETURN
    DIVIDE(
        SUM(
            'Query1'[GL_BALANCE]
        )
        - __PREV_QUARTER,
        __PREV_QUARTER
    )
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Mk60 
You need the same but to subtract instead of devide

something like 

QoQ Change GL =
VAR __PREV_QUARTER = CALCULATE(
    SUM('Query1'[GL_BALANCE]),
    DATEADD(
        'Query1'[POSTING_DATE].[Date],
        -1,
        QUARTER
    )
)
RETURN
  
        SUM(
            'Query1'[GL_BALANCE])-__PREV_QUARTER
        If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Mk60 
You need the same but to subtract instead of devide

something like 

QoQ Change GL =
VAR __PREV_QUARTER = CALCULATE(
    SUM('Query1'[GL_BALANCE]),
    DATEADD(
        'Query1'[POSTING_DATE].[Date],
        -1,
        QUARTER
    )
)
RETURN
  
        SUM(
            'Query1'[GL_BALANCE])-__PREV_QUARTER
        If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Ritaf1983,

Thank you so much!

Happy to help 🙂

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.