Forum Discussion
Conditional Joining two Table
- 6 years ago
Hello @vengadeshpalani,
The Measure I created provides the behavior you're seeing,
see screenshot below, link to the sample pbix file shows pbix
Hi!
I belive you need some sort of "bridge" table mate. 🙂
Just:
1. In Power Query build a table with 5 fields: [Account No], [Account No Start From], [Account No Start To], [Key] = [Account No Start From] + [Account No Start To], where + represents string concatenation between 2 columns (you can also use SQL if your tables come from a sql data source)
2. build a [key] column in your Account category table
3. Connect the bridge table buit in 1 to the Account Category table by the [Key] field
4. Connect the bridge table buit in 1 to the Account No table by the [Account no] field
5. Use the fields from your bridge table to make the reports
Hope this helps 🙂