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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

DAX Measure Help

Hi Experts,

I would like to create 3 DAX measure for below content. Any one please help.

 

1) AUM_MAR : Sum of market_value_usd per Customer_No for latest BusinessDate

2) Bal_Fun : If Fin_Level2= “Funds” than Sum of market_value_in_usd per Customer_No for latest BusinessDate

3) Bal_Dep :  If Fin_Level2= “Deposits and Current Account” than Sum of market_value_in_usd per Customer_No for latest BusinessDate.

 

Thank you.

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Please try measures like below:

AUM_MAR =
CALCULATE (
    SUM ( 'Table'[market_value_usd] ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[Customer_No] ),
        'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
    )
)
Bal_Fun =
VAR current_cus =
    SELECTEDVALUE ( 'Table'[Customer_No] )
RETURN
    CALCULATE (
        SUM ( 'Table'[market_value_usd] ),
        FILTER (
            'Table',
            'Table'[Customer_No] = current_cus
                && 'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
                && 'Table'[Fin_Level2] = "Funds"
        )
    )
Bal_Dep =
VAR current_cus =
    SELECTEDVALUE ( 'Table'[Customer_No] )
RETURN
    CALCULATE (
        SUM ( 'Table'[market_value_usd] ),
        FILTER (
            'Table',
            'Table'[Customer_No] = current_cus
                && 'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
                && 'Table'[Fin_Level2] = "Deposits and Current Account"
        )
    )

If the problem persists, please provide dummy data based on your data model.https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-... 

View solution in original post

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Please try measures like below:

AUM_MAR =
CALCULATE (
    SUM ( 'Table'[market_value_usd] ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[Customer_No] ),
        'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
    )
)
Bal_Fun =
VAR current_cus =
    SELECTEDVALUE ( 'Table'[Customer_No] )
RETURN
    CALCULATE (
        SUM ( 'Table'[market_value_usd] ),
        FILTER (
            'Table',
            'Table'[Customer_No] = current_cus
                && 'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
                && 'Table'[Fin_Level2] = "Funds"
        )
    )
Bal_Dep =
VAR current_cus =
    SELECTEDVALUE ( 'Table'[Customer_No] )
RETURN
    CALCULATE (
        SUM ( 'Table'[market_value_usd] ),
        FILTER (
            'Table',
            'Table'[Customer_No] = current_cus
                && 'Table'[BusinessDate ] = MAX ( 'Table'[BusinessDate ] )
                && 'Table'[Fin_Level2] = "Deposits and Current Account"
        )
    )

If the problem persists, please provide dummy data based on your data model.https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-... 

Anonymous
Not applicable

@ryan_mayu 

 

This data is private. Not able to share it. If you able to share the DAX for it. It will be great. Thank you

@Anonymous 

could you pls provide some dummy data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Anonymous 

could you pls provde the sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.