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
mrclay82
Helper II
Helper II

Alternative to TREATAS

Hi all,

 

I have this measure using TREATAS to calculate on a different date column. The problem is that it is beyond slow.

It slows down the whole report.

 

Are there any alternatives to TREATAS for this purpose that is more efficient?

Please note that the [Received All %] measure works brilliantly and cannot be changed.

 

CALCULATE(

    [Received All %],

    TREATAS(

        VALUES(

            'Dim - RequiredDate'[Date]

        ),

        'Dim - PromisedDate'[Date]

    )

)

Many thanks in advance!

1 REPLY 1
tamerj1
Super User
Super User

Hi @mrclay82 

the alternative is usually INTERSECT function or IN operator but that wouldn't improve the performance significantly. In order to optimize your code you need to provide more context and more details about your data model and the measure being calculated perhaps we can find a totally different approach. 

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.