Forum Discussion
Show Changes between two given periods
- 8 years ago
Hi Aroth,
Measure = CALCULATE([net]),FILTER(ALL(MONTHS),MONTHS[index] = MAX(MONTHS[index]))-CALCULATE([net]),FILTER(ALL(MONTHS), MONTHS[index] = MIN(MONTHS[index] )Based on above measure, I could get the desired output.
What we need is add a MonthNo column to original table (suppose it's 'Month-Project'), and insert an extra table (in my test, it's named as 'Month') listing unique month values.
Create measure like:
Diff = CALCULATE ( ( [net] ), FILTER ( 'Month-Project', 'Month-Project'[MonthNo] = MAX ( 'Month'[MonthNo] ) ) ) - CALCULATE ( ( [net] ), FILTER ( 'Month-Project', 'Month-Project'[MonthNo] = MIN ( 'Month'[MonthNo] ) ) )Add field [Month] from 'Month' table. Add [Project] and [Diff] from 'Month-Project' table.
Best regards,
Yuliana Gu
Hi Aroth,
Measure = CALCULATE([net]),FILTER(ALL(MONTHS),MONTHS[index] = MAX(MONTHS[index]))-CALCULATE([net]),FILTER(ALL(MONTHS), MONTHS[index] = MIN(MONTHS[index] )
Based on above measure, I could get the desired output.
What we need is add a MonthNo column to original table (suppose it's 'Month-Project'), and insert an extra table (in my test, it's named as 'Month') listing unique month values.
Create measure like:
Diff =
CALCULATE (
( [net] ),
FILTER ( 'Month-Project', 'Month-Project'[MonthNo] = MAX ( 'Month'[MonthNo] ) )
)
- CALCULATE (
( [net] ),
FILTER ( 'Month-Project', 'Month-Project'[MonthNo] = MIN ( 'Month'[MonthNo] ) )
)
Add field [Month] from 'Month' table. Add [Project] and [Diff] from 'Month-Project' table.
Best regards,
Yuliana Gu
Hi thanks for the support, I have the same scenario, when I use the fax in drill through option. It doest show correct caluculation. Can you kindly help what could be the possible issue and why Im not able get the values populated correctly when I used the fax as a column in tablix which is created for drill trhrrough. I have proper relationships with in table. Happy to discuss