Forum Discussion
misul
8 years agoHelper I
Dynamic Segmentation - with duplicate rows
Hi, I am trying to follow this blog post about Dynamic Segmentation. https://www.daxpatterns.com/dynamic-segmentation/ I am stuck on one point - what to do when there are duplicate transactions...
- 8 years ago
I have used this MEASURE in the LookUp Table
Measure = VAR mysales = CALCULATE ( SUM ( Table1[Sales] ) ) RETURN CALCULATE ( SUM ( Table1[Sales] ), FILTER ( VALUES ( Table1[Product] ), mysales >= SELECTEDVALUE ( CategoryLookup[Lower] ) && mysales < SELECTEDVALUE ( categoryLookup[Upper] ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
I will get back to you on your questions
I am out of office now.. On my mobile
You can share your file with me as well if possible for you
I am out of office now.. On my mobile
You can share your file with me as well if possible for you
misul
8 years agoHelper I
Much appreciated. Can't upload my source files, but I have posted sample fact and lookup tables in images above.
Would be great to have any info on how to achieve this dynamic slicing .. with or without using the following methods.
Topics I have researched:
a. Dynamic documentation ( https://www.daxpatterns.com/dynamic-segmentation/) - My desired solution seems to match this, but there are no duplicate rows in their sample file, so I couldn't follow this.
b. SUMMARISE ROLLGROUP function -https://curbal.com/blog/glossary/summarize-dax ( still figuring out how to use this function)