The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Trying to figure out how to write dax or create calculated column for overnight bank earnings based on the 2 matching criterion of date & bank. I need the date and bank to match and then conduct the calculation. I have my data model set up like below.
Solved! Go to Solution.
you can also create a date table to link both tables.
then put the date column of date and the bank of bridge table in the row
Measure=SUMX(SUMMARIZE('BankBalanceTable','BridgeTable'[Bank],'DateTable'[Date]),CALCULATE(SUM('BankBalanceTable'[Balance])*MAX('BankRatesTable'[Daily Rate])))
please change all the relationship to single direction, from Bank to other two tables
you can also create a date table to link both tables.
then put the date column of date and the bank of bridge table in the row
Measure=SUMX(SUMMARIZE('BankBalanceTable','BridgeTable'[Bank],'DateTable'[Date]),CALCULATE(SUM('BankBalanceTable'[Balance])*MAX('BankRatesTable'[Daily Rate])))
hey daniel - I guess I am not totally following but created the calendar bridge table and the one relationship has to be inactive. Any insight? Thank you!
please change all the relationship to single direction, from Bank to other two tables
Oh wow! this seems to have worked! I need to check the numbers yet, but thank you so much for your insight and expertise!
Oh yes, good idea! This calculation will get a bit more complicated as I will have accounts from the same bank that will not be earning the same rate, but this is a great idea and a push in the right direction. Thank you Daniel
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |