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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Ben1981
Helper III
Helper III

Calculated table with measures included

Hi,

I have created a calculated table that is going to have some fields being existing sum and count measures. I added them in with no errors but the output hasn't worked. It looks like perhaps I need to group by but I'm not sure how to syntax that?

I tried two different methods...
Method 1

    SELECTCOLUMNS
        (
            'Table',"MONTH",[Month]
        ,   "Region",[region]
        ,   "Customers",[_COUNT_Customers]
        ,   "Debt",[_SUM_Debt]
        )
 
Method 2
    SELECTCOLUMNS
        (
            'Table',"MONTH",[Month]
        ,   "Region",[region]
        ,   "Customers",   
CALCULATE (
                SUM ( 'Table'[Balance] ),
                'Table'[Balance] > 0,
                'Table'[Status] = "OK"
            )
        )
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@HotChilli Thanks for your contribution on this thread.

Hi @Ben1981 ,

Base on your description, it seems like you’re trying to create a calculated table using measures in Power BI. The measures are dynamic and context-dependent, meaning their values can change based on the filters applied to the report or visual.  However, the calculated tables are computed during the loading of the data model and are static, they do not change unless the data is refreshed. Therefore, you cannot use measures which are dynamic inside calculated tables which are static. 

 

You can update the formula of calculated table as below to get the similar requirement, please check if that is what  you want.

SUMMARIZE (
    'Table',
    'Table'[Month],
    'Table'[region],
    "Customers", COUNT ( 'Table'[CustomerColumn] ),
    "Debt", SUM ( 'Table'[DebtColumn] )
)

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@HotChilli Thanks for your contribution on this thread.

Hi @Ben1981 ,

Base on your description, it seems like you’re trying to create a calculated table using measures in Power BI. The measures are dynamic and context-dependent, meaning their values can change based on the filters applied to the report or visual.  However, the calculated tables are computed during the loading of the data model and are static, they do not change unless the data is refreshed. Therefore, you cannot use measures which are dynamic inside calculated tables which are static. 

 

You can update the formula of calculated table as below to get the similar requirement, please check if that is what  you want.

SUMMARIZE (
    'Table',
    'Table'[Month],
    'Table'[region],
    "Customers", COUNT ( 'Table'[CustomerColumn] ),
    "Debt", SUM ( 'Table'[DebtColumn] )
)

Best Regards

Yeah that did the trick, thanks 🙂

HotChilli
Super User
Super User

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.

Top Solution Authors