Forum Discussion
Comparing changes in Attributes based on 2 columns from Month to Month
- 3 years ago
Hi tomekm
Please try:
First create a new table for slicer:
Use the two columns to create two slicer
Then apply the measure to the table visual:
Measure = var _a = CALCULATE(MAX('Table'[ID]),FILTER(ALLEXCEPT('Table','Table'[Attribute]),[Period]=SELECTEDVALUE('For slicer'[start]))) var _b = CALCULATE(MAX('Table'[ID]),FILTER(ALLEXCEPT('Table','Table'[Attribute]),[Period]=SELECTEDVALUE('For slicer'[end]))) return _a=_bFinal output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tomekm , Create a new table with distinct periods and add a period rank column in this new table. And join the period of a new table with your table
new column
Period Rank = RANKX(all(Period),Period[year period],,ASC,Dense)
new measures examples
This Period = CALCULATE(sum('Table'[Qty]), FILTER(ALL(Period),Period[Period Rank]=max(Period[Period Rank])))
Last Period = CALCULATE(sum('Table'[Qty]), FILTER(ALL(Period),Period[Period Rank]=max(Period[Period Rank])-1))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s