Forum Discussion
Anonymous
6 years agoNot applicable
Conditional Joining two Table
Hi ALl, I have Two Table : Account No , Account Category I want to connect these two table by Accoun Number Ex: Account No : 11042-000 is want categorized Under Total Assets & Tatal Cash...
- 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
mhossain
6 years agoSolution Sage
Anonymous
Seems you require to maintain and create a separate mapping table and create relationship to existing two tables.
richbenmintz
6 years agoResident Rockstar
Hi Anonymous ,
I am going to attack this a little differently as this is a chart of accounts and the aggregation is not really additive, below you will find a measure that sums up the values of the transactions based on the range in the Account Category Table
Balance Measure =
if(
HASONEVALUE('Account Category'[Account Category]),
CALCULATE(sum('Account No'[Amount]), FILTER('Account No', 'Account No'[Account No] >= max('Account Category'[Account No Start From]) && 'Account No'[Account No] <= MAX('Account Category'[Account No End To])))
,Blank()
)
Hope this helps,
Richard
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!