Forum Discussion
Counts With rolling Months
Hello Everyone ,
I Want to Create A Report to Show My Table Record Counts with rolling Months .I Have a CreatedDate Column in My Table .
How can I Create this Visualization with Rolling Months .
Hi rakeshsaini
On your DATE table, make sure you have the following calculated columns.
MonthID = INT(format('Dates'[Date],"YYYYMM")) & Month = FORMAT('Dates'[Date],"MMM-YY")Once you have these two columns on your DATE table, make sure the Month column is sorted by MonthID, and use the Month column from your DATE table on the axis of your visual.
Thanksl Phil_Seamark . Its Working !! but Its Showing All Months From JAN-15 to DEC-17 , We Need to Map Months With Current Month on X-Axis (FEB-16 to FEB-17).
Now , its Showing ..
Try adding this column to your Date table
Months from Today = IFERROR( DATEDIFF('Dates'[Date],TODAY(),MONTH),-1)Then you can add it as a Report, Page or Visual level filter to only show values between 0 and 12 (or 1 and 12). This will dynamically roll as we go into new months
The new column looks good.
Simply drag the new column into your "Report level filters" box and configure as below (and hit apply)
17 Replies
- CapstoneResolver I
Could you clarify what do you mean by rolling months ?
- rakeshsainiHelper II
Problem :-
The Complaint Count Report > Customer Complaint Count (Rolling 12 months) is NOT actually displaying the past 12 months.
..and the Left-Most Column Should be for FEB-16 , with No Other Records (eg. JAN 2016) displaying in this Visualization.
and IF Today is FEB 27/2017 then the RIGHT MOST Column Should be for FEB-17.
- v-huizhn-msftMicrosoft Employee
Hi rakeshsaini,
Based on your description, it's still confusing, it's different to reproduce your scenario. Could you please share sample data and list the expected result for further analysis?
Best Regards,
Angelia