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 everyone 🙂
I have a problem to solve that I can't handle and I really believe in the power of community.
After simplification, I have two tables, the first one with the product. Where for each product we have the price and the financing company, the financing company can be blank (if we bought the product with our own funds)
productId | price | Financing_comapany_id |
1 | 100 | 10 |
2 | 200 | 11 |
3 | 500 | 10 |
4 | 1000 |
in the second table we have financing conditions for individual companies. That is, what percentage of the product amount is financed by own funds and what percentage by the financing company
financing_company_id | downpayment | financing |
10 | 10% | 90% |
11 | 50% | 50% |
What I would like to achieve is to create a measure that would calculate for each financing company the value of the capital involved in accordance with the terms of financing. That is, the price multiplied by the percentage of financing
That is, for product "1" it would be 100*90%=90
Complications occur with the financing company "blank" because for it, apart from the value of product prices for which financing_company is blank, I would also like to sum up the product values multiplied by the downpayment value for products for which the financing company is not blank.
This is what the table I want looks like in report
product/financing_company_id | 10 | 11 | |
product1 | 10 | 90 | |
product2 | 100 | 100 | |
product3 | 50 | 450 | |
product4 | 1000 |
thanks in advance for any help 🙂
hi @equlibrum52
in your expected result, it seems, for each product, price is 100% financed by Fin Com 10 and 11. Is there some misunderstanding?
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
19 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
35 | |
21 | |
19 | |
18 |