Forum Discussion
lastnn30
4 years agoPost Patron
Modeling is not working
Hi I have 2 tables (FactTable and dTable1, please see below) in an excel file. I do not want to use Power Query-->merge, to get Region from the dTable1. So created 1-to-Many relationship (PBI did i...
- Anonymous4 years ago
Hi lastnn30 ,
Please refer to my pbic file to see if it helps you.
Create a column firstly.
Column = CALCULATE(MAX(DTable1[Region]),FILTER((DTable1),DTable1[SalesRep]=EARLIER(FactTable[SalesRep])))Then create a measure.
Measure 3 = CALCULATE(SUM(FactTable[Revenue]),FILTER(ALL(FactTable),FactTable[Column]=SELECTEDVALUE(FactTable[Column])))If I have misunderstood your meaning, please provide your desired output with more details.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mahoneypat
4 years agoMicrosoft Employee
The issue is that your Revenue is set to text data type. In the query editor, change it to a numeric data type and the option to summarize it with a sum will appear. However, I encourage you to create a simple measure with the SUM function instead.
Pat
- lastnn304 years agoPost Patron
Thank you for your reply. Could you please explain how to create a measure with the SUM? Thanks again.