Forum Discussion
Counts With rolling Months
- 9 years ago
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.
- 9 years ago
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 ..
- 9 years ago
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
- 9 years ago
The new column looks good.
Simply drag the new column into your "Report level filters" box and configure as below (and hit apply)
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.
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