Forum Discussion
Anonymous
6 years agoNot applicable
Mapping the Data with multiple source
Hi All, Good Day! I've been trying to solve this issue for days. Need your help on how to resolve this problem. I have 3 sources of table SSD table Customer Grouping Product Grouping...
- 6 years ago
Hi Anonymous ,
You can create intermediate calculated table like DAX below, then create relationships with your three original tables with "Both" of Cross filter direction.
Distinct Customer Grouping= UNION(DISTINCT('SSD'[Customer Grouping]), DISTINCT('PSD'[Customer Grouping]),DISTINCT('Outlet'[Customer Grouping]))Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
6 years agoCommunity Champion
The table route may be the way to go. Would still be DAX.
I am going to assume that you have the DAX for the distinct customers, you could do this:
Measure =
VAR __Customers = [Distinct Customers] //this is your measure
VAR __Table =
ADDCOLUMNS(
'Outlet Table',
"Final",IF([Customer Grouping] IN __Customers,[Outlet #],0)
)
RETURN
SUMX(__Table,[Final])