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
PaulMoses
Helper I
Helper I

Use of TREATAS

Hello there
Can you please tell me if I use TREATAS correctly?
From the tables in the picture, I would like to create a "Total Amount" column in table "TABLE_DIM_SLICER_DAO", with the total amount of each DAO, using TREATAS. But it's the total amount of the entire column that appears. I do not know why, despite all my checks.
I use this simple DAX formula : 

TotalAmount = 
CALCULATE(SUM(FACT_PAR_DETAIL_REFDATE[LOAN_CNTRT_AMT]); TREATAS(VALUES(DIM_DAO[DAO_NAME]); Table_Dim_Slicer_DAO[DAO_NAME]))

Your help will be extremely valuable.
Thank you

 

1 ACCEPTED SOLUTION

@PaulMoses

 

Try with this one

 

TotalAmount =
CALCULATE (
    SUM ( FACT_PAR_DETAIL_REFDATE[LOAN_CNTRT_AMT] ),
    TREATAS ( { Table_Dim_Slicer_DAO[DAO_NAME] }, DIM_DAO[DAO_NAME] )
)

View solution in original post

3 REPLIES 3
PaulMoses
Helper I
Helper I

Treatas - 4.JPGTreatas - 2.JPG

 

@PaulMoses

 

Try with this one

 

TotalAmount =
CALCULATE (
    SUM ( FACT_PAR_DETAIL_REFDATE[LOAN_CNTRT_AMT] ),
    TREATAS ( { Table_Dim_Slicer_DAO[DAO_NAME] }, DIM_DAO[DAO_NAME] )
)

Hello @Zubair_Muhammad

Thank you very much.
It works.

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