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

Dynamic visual level filter (calculated Measure Flag)

Hi,

 

I'm using SSAS tabular Model as source for Power BI report.

Existing Set-up:

  • I have Time Filter with values "Last Week", "Last 4 Weeks", "Last 3 Motnhs" 

Time Filter

Last Week

Last 4 Week

Last 3 Motnhs

  • And have Flag columns for each Time value (above) in another table 

Route

LastWeekFlag

Last4WeekFlag

Last3MonthsFlag

A

1

1

 

B

 

1

1

C

1

 

 

D

 

 

1

E

 

 

1

 

Expected Output in Power BI:

  • if Time Filter = "Last Week". Note - Measure should be visual level filter to apply on visual

Route

Measure

A

1

C

1

  • if Time Filter = "Last 4 Weeks". Note - Measure should be visual level filter to apply on visual

Route

Measure

A

1

B

1

  • if Time Filter = "Last 3 Months". Note - Measure should be visual level filter to apply on visual

Route

Measure

B

1

D

1

E

1

 

Please help me to solve this scenario.

 

Thanks,

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi @Anonymous , 

Two workarounds: Convert table structure or try to use slicer to achieve this goal(single selection). You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

4 REPLIES 4
dax
Community Support
Community Support

Hi @Anonymous , 

Two workarounds: Convert table structure or try to use slicer to achieve this goal(single selection). You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

 

Anonymous
Not applicable

Hi @cst,

 

Thanks for your time.

 

I gone through pbix provided, Workaround#1 (change table structure not feasible in my case, because it will change grain of data).

Workaround#2 (slicer with single selection) same solution I implemented last Friday, as small POC. So I concluded 2nd approach worked for my initial requirement.

Next I have to build next brick on top of it, which sounds more complicated requirement (I will post it here, if needed).

 

I'm happy to accept this as solution 🙂

 

Thanks a lot!

 

amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit,

 

Thanks for reply. 
Gone through link sent, solution not fits into my problem statement.

 

Thanks,

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.