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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vanessafvg
Super User
Super User

dynamically filter visual by current month?

Whats the best way to filter a visual to data from only the current month.   Would it be to create a measure filtering on latest month or is there an easier way?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vanessafvg,

 

You can simply to create a calculated table to filter data with today function, then use this new table as the source of visual.

 

Current Month = CALCULATETABLE(DateTable,FILTER(ALL(DateTable),FORMAT([Date],"mm yyyy")=FORMAT(TODAY(),"mm yyyy")))

 

4.PNG

 

Notice: original datetable contains date from 2015 to 2017, after above steps, it only contains current month data.

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @vanessafvg,

 

You can simply to create a calculated table to filter data with today function, then use this new table as the source of visual.

 

Current Month = CALCULATETABLE(DateTable,FILTER(ALL(DateTable),FORMAT([Date],"mm yyyy")=FORMAT(TODAY(),"mm yyyy")))

 

4.PNG

 

Notice: original datetable contains date from 2015 to 2017, after above steps, it only contains current month data.

 

Regards,

Xiaoxin Sheng

Hi tried the formula but got this error: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

Here's my formula: Current Month = CALCULATETABLE(hd_backorders, FILTER(ALL(hd_backorders), FORMAT(hd_backorders[hd_estfulfillmentdate], "mm yyyy") = FORMAT(TODAY(), "mm yyyy")))

Hi everyone.

 

This functionality hasn't always been there, but if you have a proper formatted date column or better a dedicated date table, you can simply use the relative date filtering. See below:

 

Relative Date Filtering Power BIRelative Date Filtering Power BI

 

lalthan
Resolver II
Resolver II

Create a calculated column on your date table to identify current month and past month.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors