cancel
Showing results for 
Search instead for 
Did you mean: 
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 III
Advocate III

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
Microsoft
Microsoft

@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
Microsoft
Microsoft

@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

Bitwize_PowerBI
Advocate III
Advocate III

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

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors