Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I'm struggling in how to make some analysis in Power Bi.
I'm comfortable in manipulate and represent with Power Bi, but I'm kinda newbie in more complex DAX solutions.
So, my goal is to analyse future payments and project future sales/payments coming from renovations.
Examples bellow.
Some examples of the data:
Products
Product | Offer | Initial price | Renovation (days) | Renovation price |
A | AA1 | 750 | 180 | 1000 |
A | AA2 | 1500 | 365 | 2000 |
B | BB1 | 10 | 30 | 30 |
B | BB2 | 50 | 90 | 90 |
B | BB3 | 100 | 180 | 180 |
Buyers
Name | Offer | Purchase date | Payment received |
Client 1 | AA2 | 20/11/2020 | 12x Installments Credit Card |
Client 1 | BB1 | 21/11/2020 | 30D |
Client 2 | BB2 | 22/11/2020 | 30D |
Client 3 | BB3 | 23/11/2020 | 30D |
So I want to calculate the revenue over all 2021 from payments and projected sales renovations by products.
But atm I don't have ideas on how to start this at Power Bi in a practical way.
ideas?
Solved! Go to Solution.
Hi @leo8nardo8
Based on your description, you can do some steps as follows.
End date =
var x1=SWITCH('Buyers'[Payment received],"12x Installments Credit Card",365,"30D",30)
var x2=IF(x1>RELATED(Products[Renovation (days)]),x1,RELATED(Products[Renovation (days)]))
return
[Purchase date]+x2
End_date = MAXX(FILTER(ALL(Buyers),[Name]=SELECTEDVALUE(Buyers[Name])),[End date])
Total revenue in 2021 = SUMX(FILTER(ALL('Buyers'),[Name]=SELECTEDVALUE(Buyers[Name])&&YEAR([End date])=2021),RELATED(Products[Initial price])+RELATED(Products[Renovation price]))
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @leo8nardo8
Based on your description, you can do some steps as follows.
End date =
var x1=SWITCH('Buyers'[Payment received],"12x Installments Credit Card",365,"30D",30)
var x2=IF(x1>RELATED(Products[Renovation (days)]),x1,RELATED(Products[Renovation (days)]))
return
[Purchase date]+x2
End_date = MAXX(FILTER(ALL(Buyers),[Name]=SELECTEDVALUE(Buyers[Name])),[End date])
Total revenue in 2021 = SUMX(FILTER(ALL('Buyers'),[Name]=SELECTEDVALUE(Buyers[Name])&&YEAR([End date])=2021),RELATED(Products[Initial price])+RELATED(Products[Renovation price]))
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |