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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Dynamic Filtering at PowerBI Report level

I have a report with 4 visualizations and a few cards that is currently displaying all of the data. I'd like to filter the data (and thus the visualizations) using some logic that uses the slicer value.

 

I have a planning table with lots of dates but here's a sample:

FiscalYear | ReportDate  |  Status   | 
2017       | 01/4/2018   | Open      | 
2018       |             | Open      | 
2017       |             | Closed    |
2016       | 01/10/2016  | Complete  | 
2016       | 01/8/2017   | Complete  | 

 

The slicer values are years, which are fed into some logic to effectively define a new table (or flag the existing table), e.g.

Slicer Value = 2017 Include anything reported on in 2017 or still open:

FiscalYear | ReportDate  |  Status   | 
2017       |             | Closed    |
2016       | 01/8/2017   | Complete  | 

Slicer Value = 2018 Include anything reported on in 2018 or still open:

FiscalYear | ReportDate  |  Status   | 
2017       | 01/4/2018   | Open      | 
2018       |             | Open      | 

The logic isn't really important, beyond knowing that some records could pop up in both years. I'm just wondering what is the best strategy for doing this?

 

I could filter the data by my logic in each measure but this is very clunky. And I can't use a calculated column as it's only done once and I said, some data will span multiple years..

 

I also have a date table with every date from 2003 to 2035..

Thanks

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Just see from your data here, it could be easy with a calculated column. You can check out the demo in the attachment. Can you share sample please?

Column =
IF ( ISBLANK ( [ReportDate] ), [FiscalYear], YEAR ( [ReportDate] ) )

Dynamic_Filtering_at_Power_BI_Report_level

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Did it help? Can you mark it as an answer?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Just see from your data here, it could be easy with a calculated column. You can check out the demo in the attachment. Can you share sample please?

Column =
IF ( ISBLANK ( [ReportDate] ), [FiscalYear], YEAR ( [ReportDate] ) )

Dynamic_Filtering_at_Power_BI_Report_level

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.