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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
CharlotteCity12
Microsoft Employee
Microsoft Employee

Filtering a Table based on Selection

I want to select a year on the report then only show years that are => then that year.

 

Data:

CharlotteCity12_0-1663272426279.png

 

When I select 2019 on the report page I only want to see:

 

CharlotteCity12_1-1663272521689.png

 

Thanks

3 ACCEPTED SOLUTIONS
Syndicate_Admin
Administrator
Administrator

Nice day.

Consider using a slicer visualization with more than or relative date for the expected outcome

FrancoQuiroga_0-1663273245993.png

View solution in original post

ahmadibrahimbus
Resolver III
Resolver III

Dear @CharlotteCity12 ,

Please find below my solution ,maybe there is more performant way.

create a table like the below:

image.png

 then link this table to the calender table when you have the year date like below:

ahmadibrahimbus_1-1663273881635.png

please make sure that the relation in both direction.

so you will get the desired result as below:

ahmadibrahimbus_2-1663273981789.png

 

again I don't know if this is the most effective solution , But I guess it gives you what you need.

 

mark it as solution if it's solved your question please.

 

View solution in original post

Anonymous
Not applicable

Hi @CharlotteCity12 ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a year dimension table and apply the year field on the slicer

yingyinr_1-1663311050121.png

2. Create a measure as below to judge which year should display

Flag = 
VAR _selyear =
    SELECTEDVALUE ( 'Years'[Year] )
VAR _curyear =
    SELECTEDVALUE ( 'Table'[Year] )
RETURN
    IF ( _curyear >= _selyear, 1, 0 )

3. Create a visual and apply a visual-level filter with the condition(Flag is 1)

yingyinr_0-1663310895570.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

5 REPLIES 5
ahmadibrahimbus
Resolver III
Resolver III

Dear @CharlotteCity12 ,

Please find below my solution ,maybe there is more performant way.

create a table like the below:

image.png

 then link this table to the calender table when you have the year date like below:

ahmadibrahimbus_1-1663273881635.png

please make sure that the relation in both direction.

so you will get the desired result as below:

ahmadibrahimbus_2-1663273981789.png

 

again I don't know if this is the most effective solution , But I guess it gives you what you need.

 

mark it as solution if it's solved your question please.

 

Syndicate_Admin
Administrator
Administrator

Nice day.

Consider using a slicer visualization with more than or relative date for the expected outcome

FrancoQuiroga_0-1663273245993.png

Anonymous
Not applicable

Hi @CharlotteCity12 ,

I created a sample pbix file(see attachment) for you, please check whether that is what you want.

1. Create a year dimension table and apply the year field on the slicer

yingyinr_1-1663311050121.png

2. Create a measure as below to judge which year should display

Flag = 
VAR _selyear =
    SELECTEDVALUE ( 'Years'[Year] )
VAR _curyear =
    SELECTEDVALUE ( 'Table'[Year] )
RETURN
    IF ( _curyear >= _selyear, 1, 0 )

3. Create a visual and apply a visual-level filter with the condition(Flag is 1)

yingyinr_0-1663310895570.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

CharlotteCity12
Microsoft Employee
Microsoft Employee

Thank you very much.. But I need the user just to pick one year and it auto creates the list

 

rsbin
Community Champion
Community Champion

@CharlotteCity12 ,

Create a Slicer with your Year Column.

Select the dropdown in the top right corner to select the type of slicer

rsbin_0-1663272972968.png

Then select the last option, "Greater than or equal to".

Regards,

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.