Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Convert Excel formula

gh614_0-1645181360841.png

Hi, I am trying to recreate the above formula in DAX/BI.

I am a bit of a novice but i am hoping someone can help me understand why I can't get this to work.

I have imported "Product List" into BI and have a document that contains the product code that I am trying to link to.

 

Would appreciate any guidance please.


Thank,

Glen

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 
Try this:

Column =
IF(
    CALCULATE(
        MAX( 'table'[E] ),
        FILTER( ALL( 'table' ), [B] = "*" & [F] & "*" )
    ) = "generally available",
    SWITCH(
        TRUE(),
        [R] = "BTL", "BTL",
        [T] <= 0.8, "Standard Low LTV",
        [T] > 0.8, "Standard High LTV"
    ),
    CALCULATE(
        MAX( 'table'[E] ),
        FILTER( ALL( 'table' ), [B] = "*" & [F] & "*" )
    )
)

If this does not solve your problem, could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented?  And It would be great if there is a sample file without any sesentive information here.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 
Try this:

Column =
IF(
    CALCULATE(
        MAX( 'table'[E] ),
        FILTER( ALL( 'table' ), [B] = "*" & [F] & "*" )
    ) = "generally available",
    SWITCH(
        TRUE(),
        [R] = "BTL", "BTL",
        [T] <= 0.8, "Standard Low LTV",
        [T] > 0.8, "Standard High LTV"
    ),
    CALCULATE(
        MAX( 'table'[E] ),
        FILTER( ALL( 'table' ), [B] = "*" & [F] & "*" )
    )
)

If this does not solve your problem, could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented?  And It would be great if there is a sample file without any sesentive information here.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.