Forum Discussion
Historical bands using a column
Hello,
I need to implement many classifications based on different measures (YTD, MTD). I'm using a column because I need the flexibility to use it also as a filter in a slicer.
The classification works well if I use it as a filter or in a matrix as a value. I have problems when I put it in a rows and I want to show in the matrix also the YTD amount (where the classification is based).
Schema:
Through the link below you will find the example.
https://1drv.ms/u/s!AvVXApJDIqkLlz5Pwu-crnGBeFWv?e=2tNf6b
Thanks in advance for your support.
G.
2 Replies
- ERD
Community Champion
Hi Gab_1983 ,
You can try this measure instead:
REVENUES YTD = VAR t = ADDCOLUMNS ( SUMMARIZE ( Customer, Period[Date], Customer[Customer], Customer[Class Revenues] ), "REVENUE", CALCULATE ( SUM ( FactAMT[AMT] ), DATESYTD ( Period[Date] ), ALLEXCEPT ( Customer, Customer[Customer] ) ) ) RETURN SUMX ( t, [REVENUE] )- Gab_1983New Member
Hi ERD,
thanks for your suggestion. Effectively in this way it works. So according to you is not the "Class column" the problem but the measure...The problem is that in reality I have a big data model that already includes a lot of measures (more than 200), change the structure of each measure is not feasible.
I'm trying to find a way to implement multiples classification (based on MTD, YTD figures) considering the selected date.
I know that maybe use a column is not the best approach (I already tried to do the classification with a measure (measure + parametric table with the segmentation) and it works well but then I have the limitation that a measure can't be used in rows or in a slicer) .
Please let me know if you have any other suggestions.
Thanks in advance
G.