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
sraj
Responsive Resident
Responsive Resident

Default the current month & year

Hi there,

 

Is it possible to default the current month and year on the BAR graph without making any selections on the slicer? One gentleman did help build two columns but I dont know how to use it on my bar graph...Please advise

 

Column 1

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

Capture.PNG
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sraj , Please find the attached file after signature, Check Date table and Month Type Page. I do not have latest data. So once you choose this month there will no data.

 

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sraj , Please find the attached file after signature, Check Date table and Month Type Page. I do not have latest data. So once you choose this month there will no data.

 

 

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.