Forum Discussion
sureshcu
8 years agoHelper I
Summarize Table to retrieve 2017 data
Hi,
I have created Table using summarize function. however, I want to restrict the data of 2017 only. Can you please help to retrieve only 2017 data. I have written the following measure.
HC & Attrition % = SUMMARIZE(Append1,Append1[Reporting Month],"Total HC",[Total EMP],"Total Attrition",[Attrition])
You Rock Zubair. A ton thanks for you. It is working fine
6 Replies
- Zubair_MuhammadCommunity Champion
Hi sureshcu
Wrap it with a filter
Try this
HC & Attrition % = FILTER ( SUMMARIZE ( Append1, Append1[Reporting Month], "Total HC", [Total EMP], "Total Attrition", [Attrition] ), YEAR ( Append1[Reporting Month] ) = "2017" )- sureshcuHelper I
Hi Zubair,
I have tried. it is throwing the following error
DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.
- Zubair_MuhammadCommunity Champion