Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I've been studying Power BI and nothing better than bulding something to solve a personal issue. The problem is, I am unsure if my data structure is good enough to solve the issue. I have 4 tables:
I am trying to build a measure that will calculate the day-to-day value of each investment fund (quota * amount) whenever the daily report date is greater than or equal to that row from the portfolio table.
In other words, if my Portfolio table contains: Amount of 3,56 @ 20/12/2018 and Amount of -2,98 @ 12/02/2019, I would use the daily quota to calculate something like Summation of ( quota * amount where daily quota greater than Order date ). In my prior example, would result in 3,56 * daily quota value between 20/12/2018~11/02/2019, 0,58 * daily quota value after 12/02/2019, and 0 before 20/12/2018.
Is there a way of creating such measure?
My pbix > https://1drv.ms/u/s!Aon_lf2n7StXi49n6TYf-dOok9etiA?e=2k6EAx
I also understand that my data structure could possibly be wrong. TIA
Solved! Go to Solution.
hi, @Anonymous
You could use this formula
daily quota value = IF(MAX(Dates[Date])<MIN(Portfolios[Date]),0, CALCULATE(SUM(Portfolios[Amount]),FILTER(Portfolios,Portfolios[Date]<=MAX('Daily Reports'[Date]))))
And for the relatinship between Portfoloos and Daily Reports should be Both
Result:
Best Regards,
Lin
hi, @Anonymous
You could use this formula
daily quota value = IF(MAX(Dates[Date])<MIN(Portfolios[Date]),0, CALCULATE(SUM(Portfolios[Amount]),FILTER(Portfolios,Portfolios[Date]<=MAX('Daily Reports'[Date]))))
And for the relatinship between Portfoloos and Daily Reports should be Both
Result:
Best Regards,
Lin
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!