Forum Discussion
Display previous months on the X axis
- 1 year ago
You can create another measure to establish a virtual relationship between the disconnected table and the related dates table using TREATAS.
Agg selected month = CALCULATE ( [Sum of Value], -- Applies the [Sum of Value] measure within the specified filter context. KEEPFILTERS ( -- Ensures existing filters on the DatesTable remain in place while applying the TREATAS filter. TREATAS ( VALUES ( DisconnectedDatesTable[Month and Year] ), -- Retrieves unique values from the DisconnectedDatesTable[Month and Year]. DatesTable[Month and Year] -- Maps the values from the disconnected table to the active DatesTable[Month and Year] column. ) ) )
Hi Anonymous ,
Do you want to display in the Matrix the values only for selected month and year?
Please give me more details and context.
- Anonymous1 year agoNot applicable
That's right Bibiano_Geraldo
The way months are being filtered in the bar chart, it should show the same in the matrix.
- Bibiano_Geraldo1 year ago
Super User
Hi Anonymous ,
You need to use the same measure in the Matrix Values fields [Agg In the last 12 Months] as you did in the bar chart.
Your output wiil look like this:If you want to see exatcl the same, just use in the rows field the Month & year from DatesTable:
Please consider to check the attached file
- Anonymous1 year agoNot applicable
Bibiano_Geraldo I dont have to show the same thing in matrix.
Have to show other data points.