Forum Discussion
dax
- 5 years ago
Hi Anonymous ,
Please check:
1. Create another Dates table.
Dates = ADDCOLUMNS ( CALENDAR ( DATE ( 2020, 1, 1 ), DATE ( 2020, 12, 31 ) ), "Year", YEAR ( [Date] ), "Month", MONTH ( [Date] ), "MonthName", FORMAT ( [Date], "mmmm" ) )2. Create columns in your Query table.
Call Closed Date = [Call Closed].[Date]YearMonth = FORMAT([Call Closed Date],"YYYY MMMM")3. Create relationship between the two tables.
4. Create measures.
M.SLA% 2 = CALCULATE([M.SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))RAW SLA% 2 = CALCULATE([RAW SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))Count of Call Closed = CALCULATE(COUNT(Query1[Call Closed]),DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))5. Create visuals.
In addition, please change the slicer field to "MonthName" of "Dates" table.
Best regards
Icey
If this post helps,then consider Accepting it as the solution to help other members find it faster.
Hi Anonymous ,
Please check:
1. Create another Dates table.
Dates =
ADDCOLUMNS (
CALENDAR ( DATE ( 2020, 1, 1 ), DATE ( 2020, 12, 31 ) ),
"Year", YEAR ( [Date] ),
"Month", MONTH ( [Date] ),
"MonthName", FORMAT ( [Date], "mmmm" )
)
2. Create columns in your Query table.
Call Closed Date = [Call Closed].[Date]
YearMonth = FORMAT([Call Closed Date],"YYYY MMMM")
3. Create relationship between the two tables.
4. Create measures.
M.SLA% 2 = CALCULATE([M.SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))RAW SLA% 2 = CALCULATE([RAW SLA%],DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))Count of Call Closed = CALCULATE(COUNT(Query1[Call Closed]),DATESINPERIOD ( Dates[Date], MAX ( Dates[Date]), -3 , MONTH ))
5. Create visuals.
In addition, please change the slicer field to "MonthName" of "Dates" table.
Best regards
Icey
If this post helps,then consider Accepting it as the solution to help other members find it faster.