The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to Solution.
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-...
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-...
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?
Proud to be a Super User!
@Anonymous
could you pls provde the sample data and expected output?
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
82 | |
65 | |
53 | |
52 |
User | Count |
---|---|
128 | |
115 | |
80 | |
65 | |
63 |