Forum Discussion
Problems combining 2 Tables
I've reproduced the problem in an almost empty file with dummydata. I think it will be clear what the problem is, but for sure: the first matrix is correct, the second one gives duplication.
In my opinion it's the same situation, but the second is with DAX. And it's not the same I see in output...
File is here; Click here
- MiKeZZa9 years agoPost Patron
Yes, that's great! That works really good for my simplified example, good to know!!!
But in our model there is also a both cross filter on costcenter, because of that the security is done by this tables. See printscreen 3 of openingpost. So I can't make this, because of this message:
So I'm still (a little) desperate...
- Vvelarde9 years agoCommunity Champion
Ok, Try with this:
SumColumnWithDax = IF ( HASONEVALUE ( Emp[EmpID] ), CALCULATE ( SUM ( 'Fact 1'[SumColumn] ), FILTER ( 'Fact 1', 'Fact 1'[EmpID] = VALUES ( 'Fact 2'[EmpID] ) ) ), CALCULATE ( SUM ( 'Fact 1'[SumColumn] ) )- MiKeZZa9 years agoPost Patron
Yes, this looks very great! In my small example it works. I'll give it later today a try in my more complex model, but I'm hopeful... I'll come back to post my progress!
But can somebody explain me what happens here; why hasonevalue?