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
Anonymous
Not applicable

Dynamic filtering on Power BI

How can I make a dynamic filter on a Power BI chart?

 

I have a MONTH table and it contains these values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. I dot not want to display data for months that are bigger than current month, MONTH(TODAY()).

 

I want something like this:

 

Screenshot_2017-04-13_12-01-08.png

2 ACCEPTED SOLUTIONS
Bitwize_PowerBI
Advocate IV
Advocate IV

Hi,

 

You have to create a measure like this:

 

Measure = calculate(sum('table'[data]); 'monthtable'[month] <= month(today()))

and use this measure in your chart.

 

View solution in original post

v-sihou-msft
Employee
Employee

@Anonymous

 

You can't apply expression in visual level filter. I suggest you create a calculated table which always filter records for months greater than current month.

 

Table=FILTER(Table,Table[Month]>MONTH(TODAY()))

Regards,

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you, both solutions worked!

v-sihou-msft
Employee
Employee

@Anonymous

 

You can't apply expression in visual level filter. I suggest you create a calculated table which always filter records for months greater than current month.

 

Table=FILTER(Table,Table[Month]>MONTH(TODAY()))

Regards,

 

Bitwize_PowerBI
Advocate IV
Advocate IV

Hi,

 

You have to create a measure like this:

 

Measure = calculate(sum('table'[data]); 'monthtable'[month] <= month(today()))

and use this measure in your chart.

 

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.