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
bilingual
Helper V
Helper V

Filter for full months

Hi , i  have a a query where i am importing data every monday, but for a lot of the visuals , they must only be updated when the month has ended and all data is available.

For example now i have a graph which shows data for September but only for the first 6 days.

 

 

I can off course remove September manually by filter , but is there a way to create a filter so only the full months  are shown?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bilingual , Not very clear.

 

You can have a column in the date table like

Month Type = Switch( True(),
Date[Date] = eomonth(Today(),0) && eomonth(Date([Date],0)= eomonth(Today(),0) ,"Current Month" , //Last Month
Date[Date] <> eomonth(Today(),0) && eomonth(Date([Date],0)= eomonth(Today(),-1) && ,"Current Month" , //This Month
[Month Year]
)

 

and Use current month as filter

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@bilingual , Not very clear.

 

You can have a column in the date table like

Month Type = Switch( True(),
Date[Date] = eomonth(Today(),0) && eomonth(Date([Date],0)= eomonth(Today(),0) ,"Current Month" , //Last Month
Date[Date] <> eomonth(Today(),0) && eomonth(Date([Date],0)= eomonth(Today(),-1) && ,"Current Month" , //This Month
[Month Year]
)

 

and Use current month as filter

Hi Amit, unfortunately it does not work, as the Current Month is only active for one of the days in the month, not all days 😞

Current month = Switch( True();
Calendar[Date] = eomonth(Today();0) && eomonth(Calendar];0)= eomonth(Today();0) ;" Current month"
Calendar[Date] = eomonth(Today();0) && eomonth(Calendar];0)= eomonth(Today();-1) ;" Current month"
[Måned_år]
)

My example:

DateCurrent month formulaMåned_år
28-09-2020Current month sep-20
21-09-2020sep-20 sep-20
07-09-2020sep-20 sep-20
08-09-2020 sep-20 sep-20
31-08-2020 sep-20 sep-20

Thanks Amit, 

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.