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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ROG
Responsive Resident
Responsive Resident

'CompletedMonth' column is required.

Hello,

 

Could you please help me with a dax where from my calendar table, I get only data from the completed months?

 

At the moment I have to keep filtering only the months that complete, which is very manual and osmetimes I forget. Thanks!

 

ROG_0-1679410900271.png

 

3 REPLIES 3
lbendlin
Super User
Super User

If your calendar table is in import mode and you are refreshing it daily you can add a calculated column 

 

CurrentMonth = if(format([Date],"yyyyMM")=format(TODAY(),"yyyyMM"),1,0)

 

and then have a report wide filter setting this to 0. 

lbendlin
Super User
Super User

What is your definition of "completed" ?  Is your data source in import mode? how often is it refreshed?

ROG
Responsive Resident
Responsive Resident

Hi @lbendlin  thanks for your reply.
My calendar table is in import mode, but the fact table is direct query.

At the moment I can the metrics by month, but for the current month, I'm getting MTD, but it gives the impression we are not doing well compared to previous months. So, I had another column, which could be just true/false to flag, when the month is complete it would be really helpful. Thanks! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.