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
Jwheels11
New Member

Convert Tableau LOD expression to PowerBI DAX

Hello all,

I'd like to know how to convert this Tableau LOD expression into Power BI DAX. Could anyone help me, please?

 

[Change Date] =
{ FIXED [Id] :
MAX(IF [Change Date] <=(DATETIME(TODAY()) - 0.00001)
THEN [ Change Date] END) }

 

Thanks in advance!

3 REPLIES 3
Anonymous
Not applicable

Hi @Jwheels11 

 

Thank you very much Jonvoge for your prompt reply.

 

Try this:

 

ChangeDate = 
VAR MaxChangeDate = 
    CALCULATE(
        MAX('YourTable'[Change Date]),
        FILTER(
            'YourTable',
            'YourTable'[Id] = EARLIER('YourTable'[Id]) &&
            'YourTable'[Change Date] <= (TODAY() - 0.00001)
        )
    )
RETURN
    IF(NOT(ISBLANK(MaxChangeDate)), TRUE, FALSE)

 

Regards,

Nono Chen

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

Jwheels11
New Member

I need it to be a T/F otherwise it can't be used as a filter correctly

Jonvoge
Super User
Super User

Hi Jwheels11

 

My Tableau is a little rusty, but FIXED is roughly translateable to the ALLEXCEPT() function in DAX.

And in replacement of DATETIME(TODAY()) you could use NOW(). 

 

 

You would likely need to built something like:

 

M_ChangeDate=

Calculate(MAX('Table'[Change Date]), ALLEXCEPT('Table', 'Table'[Id]))

 

And to add the NOW() filter, perhaps something like:

M_ChangeDate=

Calculate(MAX('Table'[Change Date]), ALLEXCEPT('Table', 'Table'[Id]), 'Table'[Change Date] <= NOW())

_____________________________________________________
I hope my comment was helpful.
If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.
Find me on LinkedIn, Sessionize, or my blog Downhill Data

 

 

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