Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I'm trying to create 2 columns that will show for example March 2022 vs March 2023 stats for a team when you filter on a specific month.
What I have at the moment is this (I have a 'Dates' table and the team specific stats is calculated from data in 'Incidents' throug a calculated measure). It doesn't work 🙂
Solved! Go to Solution.
Hi @E_K_ ,
Due to I don't know your data model, I will give you some suggestions. According to your statement, I think you only want to compare the data current month with the data on same period in pervious year.
Her I create a sample to have a test.
Measure:
MTTR specific month =
VAR _currentyear =
YEAR ( TODAY () )
VAR _selectmonth =
SELECTEDVALUE ( DimMonth[Month] )
RETURN
IF (
ISFILTERED ( DimMonth[MonthName] ),
CALCULATE (
[MTTR],
FILTER (
'Calendar',
'Calendar'[Year]
IN { _currentyear, _currentyear - 1 }
&& 'Calendar'[Month] = _selectmonth
)
),
[MTTR]
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @E_K_ ,
Due to I don't know your data model, I will give you some suggestions. According to your statement, I think you only want to compare the data current month with the data on same period in pervious year.
Her I create a sample to have a test.
Measure:
MTTR specific month =
VAR _currentyear =
YEAR ( TODAY () )
VAR _selectmonth =
SELECTEDVALUE ( DimMonth[Month] )
RETURN
IF (
ISFILTERED ( DimMonth[MonthName] ),
CALCULATE (
[MTTR],
FILTER (
'Calendar',
'Calendar'[Year]
IN { _currentyear, _currentyear - 1 }
&& 'Calendar'[Month] = _selectmonth
)
),
[MTTR]
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
81 | |
65 | |
62 |
User | Count |
---|---|
147 | |
116 | |
104 | |
88 | |
65 |