Forum Discussion
pokdbz
5 years agoHelper II
2 Fact table help
Fact 1 Store Dept Promo Flag 201 9 Y 202 9 N Fact 2 Store Dept Sales 201 9 1000 202 9 2050 Dimension Store, Dept, P...
Jihwan_Kim
5 years agoSuper User
Hi,
I think you can try something like the below.
Sales Total =
CALCULATE (
SUM ( Fact2[Sales] ),
CROSSFILTER ( Fact1[Store], Store[Store], BOTH ),
CROSSFILTER ( Fact3[Dept], Dept[Dept], BOTH )
)
CALCULATE (
SUM ( Fact2[Sales] ),
CROSSFILTER ( Fact1[Store], Store[Store], BOTH ),
CROSSFILTER ( Fact3[Dept], Dept[Dept], BOTH )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
pokdbz
5 years agoHelper II
Thanks for the help. I think I've identified why its doing this. But not sure what the difference is maybe you have some insight.
Table column aggregated value of Summarization of column SLS_AMT, it has the "E" next to it. When I use this column it doesn't cause the row expansion
Measure created Sales = SUM(SLS_AMT)
When this measure is created is causes the extra rows to be produced.