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

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

Reply
Anonymous
Not applicable

Calculation groups - Model vs defined measure

In summary, I have a measure in my model that calculates incorrect numbers, however, if I connect to the model using Power BI and define a new measure with the same DAX code as the measure then the newly defined measure works. I've tried to set out some prescient details below, happy to share anything further needed.

 

I am experimenting with calculation groups and am starting with currency conversion. In my model I have some measures (billings/receipts etc) that calculate currency based on the transaction date, other measures (unsold stock, unpaid invoices) are based on the current date. All of the measures explicitly defined in the calculation group work as expected.

 

I have another measure "Net Billing" that calculates billing less the movement in unpaid invoices. This measure is not defined in the calculation group explicitly but uses the [billings] and [unpaid invoices] measure which are.

 

The Net Billing DAX code is:

 

VAR StartDebt =
    CALCULATE (
        Debtors[Billed Fee Value - Debtors],
        ALL ( 'Reporting Period' ),
        Debtors[ReportingPeriodKey] = StartPeriodKey
    )
VAR EndDebt =
    CALCULATE (
        Debtors[Billed Fee Value - Debtors],
        ALL ( 'Reporting Period' ),
        Debtors[ReportingPeriodKey] = EndPeriodKey
    )
VAR DebtMovement =
    EndDebt - StartDebt
    
VAR billings =
    CALCULATE ( Billing[Billed Fee Value - Billing] )

VAR NetBilling =
    billings - DebtMovement
    
RETURN
    NetBilling

0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.