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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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