Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello guys,
Im trying to solve a problem i found while building my data model.
I got 2 differents tables :
- One with the account balance by month for each tenant.
Tenant Account | Month | Account balance |
481 | 06-2022 | 125 € |
481 | 07-2022 | 422 € |
481 | 08-2022 | 23 € |
- One with the litigation phase of the tenant, with the start date & the end date of the phase.
Tenant Account | Litigation phase | Start Date | End Date |
481 | Phase 1 | 13/05/2021 | 23/08/2021 |
481 | Phase 2 | 03/01/2022 | 24/07/2022 |
481 | Phase 1 | 06/08/2022 | 23/08/2022 |
I have to associate the correct phase to each line in the first table. Any idea ?
Thanks for reading 😄
Solved! Go to Solution.
@Hugo_RGS , Create a new column in table 1, convert account month into date or create a date from it
maxx(filter(Table2, Table2[tenant Account] = table1[tenant Account] && table1[Account Date]>= Table2[Start Date] && Table1[Account Date] <= Table2[End date]) , Table2[Litigation phase])
@Hugo_RGS , Create a new column in table 1, convert account month into date or create a date from it
maxx(filter(Table2, Table2[tenant Account] = table1[tenant Account] && table1[Account Date]>= Table2[Start Date] && Table1[Account Date] <= Table2[End date]) , Table2[Litigation phase])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |