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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Arul
Super User
Super User

Current Month in slicer

Hi All,

 

I have an requirement to show current month as a default value. Could anyone help me on how to achieve this?

 

Thanks,

-Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


1 ACCEPTED SOLUTION
Gaurav_Lakhotia
Helper III
Helper III

Hi @Arul, you can create a conditional column,

IF(MONTH(Date[Date]) = MONTH(TODAY()), "Current Month",
FORMAT(Date[Date],"mmmm"))

 

Select "Current Month" in the slicer & save your report.

Gaurav_Lakhotia_0-1635340581104.png

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

Gaurav_Lakhotia_1-1635339636750.png

 

 

View solution in original post

2 REPLIES 2
Gaurav_Lakhotia
Helper III
Helper III

Hi @Arul, you can create a conditional column,

IF(MONTH(Date[Date]) = MONTH(TODAY()), "Current Month",
FORMAT(Date[Date],"mmmm"))

 

Select "Current Month" in the slicer & save your report.

Gaurav_Lakhotia_0-1635340581104.png

 

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

Gaurav_Lakhotia_1-1635339636750.png

 

 

amitchandak
Super User
Super User

@Arul , You have to create a new column in the date table and select this month in visual

 

Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.