Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
{fixed [Code],[Work Order],[Bill Code]: max([Total Amount])}
Need to Convert this Tablea function into Power BI Dax
Solved! Go to Solution.
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] )
)
)
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.
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] )
)
)
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.
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])))
@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])))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!