Forum Discussion
ajdm2007
Helper III
1 year agoAdding previous month measure
Hi everyone, I have this visualization with several metrics. I’d like to add a metric to each card showing the value from the previous month. For example, if I'm viewing the data for August, I wa...
ajdm2007
Helper III
1 year agoGuys,
I think the problem is not in the relationship, I have tried this formula and it didn't work either:
tmp =
CALCULATE(
COUNTROWS(
FILTER(
tickets,
tickets[status]=">Completed*" && tickets[status]=">Completed (No email)"
)
),
PREVIOUSMONTH('calendar'[date])
)
Unless the issue is in the relationship of the calendar table.
Any idea?
Thank you so much.
lbendlin
Super User
1 year agoContrary to natural language, " I want a and b" is expressed in boolean logic via OR (||), not AND (&&)
tmp =
CALCULATE(
COUNTROWS(tickets)
tickets[status] IN {">Completed*",">Completed (No email)"},
PREVIOUSMONTH('calendar'[date])
)