Forum Discussion
Mapping the Data with multiple source
- 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.
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])Hi Greg_Deckler,
Thank you for replying. I tried the measure you suggested. its giving me this error.
- Greg_Deckler6 years agoCommunity Champion
__Customers is supposed to be the distinct list of customers that you said you had, not their count, so something like:
VAR __Customers = DISTINCT('Table'[Column])
This returns a table of values, which is what you want for the measure.
- Anonymous6 years agoNot applicable
Hello @Greg_Deckler
My apologies, the name of the measure is wrong. This is the measure I created if it expands. As you can see the measure is trying to get values other than psd and ssd during the last 6 months with condition, but it does not allow me since it says that it is not a valid table