Forum Discussion
Display Current Month Range and Compare it with Previous Month Range
Team,
The below snapshot picture is the new requirement which I need to display on my dashboard.
Basically, I need to display the current month (say JAN 2026) and Compared with: previous month (say DEC 2025).
Also, pick the dates from the Calendar icon as shown in the picture.
Any help is appreciated.
Thanks,
STV
Hi STV,
Thank you Irwan, techies, for your insights.
You can achieve this in Power BI by using a standard date slicer for custom date selection, together with a disconnected comparison table and DAX measures to calculate the previous equivalent period dynamically. I’ve set up this method to provide flexible date selection and automatic previous-period comparison, and I’ve attached the PBIX file for your reference.
Thank you.
8 Replies
- Irwan
Super User
hello STV
this is the best visual that i can do that match to your screenshot.
there is no dashboard as your screenshot so you need to have some work around.
1. create a measure for current month
Desc1 =
var _MinCal1 = EOMONTH(TODAY(),-1)+1
var _MaxCal1 = EOMONTH(TODAY(),0)
Return
_MinCal1&" - "&_MaxCal12. create a measure for selected slicer dateDesc2 =
var _MinCal2 = MIN('Calendar 2'[Date])
var _MaxCal2 = MAX('Calendar 2'[Date])
Return
"Compared with: "&_MinCal2&" - "&_MaxCal23. get a rectangular shape, then under Style option, go to text then conditional formating.4. in text conditional formating, choose Field value under Format style, then use the measure for current month.
5. do the exact for the selected slicer date.Hope this will help.Thank you. - Irwan
Super User
hello STV
1. that is a between date slicer but if you resize small enough, it will show a between date without the slider
2. that are two rectangular shape, each shape for one measure. because as far as my knowledge, concatenate command in pbi can not create a new line like alt+enter in excel, so we need to create two shape and place side-by-side.
Hope this will help.
Thank you.
- techies
Super User
- v-saisrao-msft
Community Support
- STVFrequent Visitor
Hi v-saisrao-msft,
Unfortunetly, the issue is still open. to be more specific, her is how it should look like when I click on the Calendar icon and would be able to select my own dates from the last month period. Appreciate your help.
Thanks!
- v-saisrao-msft
Community Support
Hi STV,
Thank you Irwan, techies, for your insights.
You can achieve this in Power BI by using a standard date slicer for custom date selection, together with a disconnected comparison table and DAX measures to calculate the previous equivalent period dynamically. I’ve set up this method to provide flexible date selection and automatic previous-period comparison, and I’ve attached the PBIX file for your reference.
Thank you.