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)
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
Yes i added it and Now it Showing Months Count . But How Can i Map it . Can you Clarify . I am Not able to catch .
- Phil_Seamark9 years agoMicrosoft Employee
The new column looks good.
Simply drag the new column into your "Report level filters" box and configure as below (and hit apply)
- Phil_Seamark9 years agoMicrosoft Employee
Nice! Well done rakeshsaini :)
- rakeshsaini9 years agoHelper II
Thanks You So Much Phil_Seamark , Its Working Fine.