Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
STV
Frequent Visitor

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.

 

STV_1-1771437531526.png

 

Thanks,

STV

1 ACCEPTED SOLUTION

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.

View solution in original post

8 REPLIES 8
v-saisrao-msft
Community Support
Community Support

Hi @STV,

Have you had a chance to review the solution we shared by @Irwan @techies? If the issue persists, feel free to reply so we can help further.

 

Thank you.

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.

 

STV_0-1771945825216.png

 

Thanks!

HI @STV,

Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.

 

Thank you.

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.

techies
Super User
Super User

Hi @STV should the current vs previous month range appear as a header summary like this example?

 

techies_0-1771656443914.png

 

 

 

Power BI & Microsoft Fabric
PL-300 | DP-600 | DP-700 Certified
STV
Frequent Visitor

@Irwan - Thanks a bunch for your help. It gave some idea on how to use the conditional formatting.

 

Couple of questions:

1.How are you able to display that tiny calendar icons

2. How did you use both Desc1 and Desc2 in one rectangle shape.

 

Sorry for the silly questions.

hello @STV 

 

1. that is a between date slicer but if you resize small enough, it will show a between date without the slider

Irwan_0-1771540391209.png

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.

Irwan_1-1771540431403.png

 

Hope this will help.

Thank you.

Irwan
Super User
Super User

hello @STV 

 

this is the best visual that i can do that match to your screenshot.

Irwan_0-1771457794840.png

 

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&" - "&_MaxCal1
2. create a measure for selected slicer date
Desc2 =
var _MinCal2 = MIN('Calendar 2'[Date])
var _MaxCal2 = MAX('Calendar 2'[Date])
Return
"Compared with: "&_MinCal2&" - "&_MaxCal2
3. get a rectangular shape, then under Style option, go to text then conditional formating.
Irwan_1-1771457934429.png

4. in text conditional formating, choose Field value under Format style, then use the measure for current month.

Irwan_2-1771458045413.png
5. do the exact for the selected slicer date.
 
Hope this will help.
Thank you.
 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.