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! Request now

Reply
Anonymous
Not applicable

Fixed Tableau function into Power BI DAX

{fixed [Code],[Work Order],[Bill Code]: max([Total Amount])}

Need to Convert this Tablea function into Power BI Dax

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, the fixed function corresponds to the function in powerbi to keep the fields corresponding to the grouping role. There are several ways to achieve this effect.

M_sum1 = 
CALCULATE (
    [sum],
    ALLEXCEPT ( 'Table', 'Table'[Bill Code], 'Table'[Code], 'Table'[Work Order] )
)
M_sum2 = 
CALCULATE (
    [sum],
    FILTER (
        ALL ( 'Table' ),
        'Table'[Code] = MAX ( 'Table'[Code] )
            && 'Table'[Work Order] = MAX ( 'Table'[Work Order] )
            && 'Table'[Bill Code] = MAX ( 'Table'[Bill Code] )
    )
)

vhenrykmstf_0-1644477772651.png

 

For more details, you can read related blog as below.

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI


If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, the fixed function corresponds to the function in powerbi to keep the fields corresponding to the grouping role. There are several ways to achieve this effect.

M_sum1 = 
CALCULATE (
    [sum],
    ALLEXCEPT ( 'Table', 'Table'[Bill Code], 'Table'[Code], 'Table'[Work Order] )
)
M_sum2 = 
CALCULATE (
    [sum],
    FILTER (
        ALL ( 'Table' ),
        'Table'[Code] = MAX ( 'Table'[Code] )
            && 'Table'[Work Order] = MAX ( 'Table'[Work Order] )
            && 'Table'[Bill Code] = MAX ( 'Table'[Bill Code] )
    )
)

vhenrykmstf_0-1644477772651.png

 

For more details, you can read related blog as below.

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI


If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

{fixed [Code],[Work Order]: MIN(DATE([Quote Recvd Dt]))}

Here [quote Recvd dt] is a date column, Need to convert this Tableau function into Power BI Dax 

Hi @Anonymous ,

 

It seems that this is the post I came across earlier that has provided the relevant solution.

 

Refer to the following link: Solved: Re: Fixed Tableau function into Power BI DAX - Microsoft Power BI Community


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

= 
CALCULATE (
 MIN('Table1'[Quote Recvd Dt])
, ALLEXCEPT ( 'Table1', 'Table1'[Code], 'Table1'[Work Order] )
)
 

 

@Anonymous , try like

 

calculate(MINX(Table, datevalues(Table[Quote Recvd Dt])), filter(all(table), Table[Code] =max(Table[Code]) && Table[Work Order] = max([Work Order])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , Try like

 

calculate(max(Table[Total Amount]), filter(all(Table), Table[Code] = max(Table[Code]) , Table[Work Order] = max(Table[Work Order]) && Table[Bill Code] = max(Table[Bill Code])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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