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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
nhmpp
Helper I
Helper I

Filters not applying

Hello,

 

I am using this measure: 

 

CALCULATE(Parameter[Parameter Value]*DISTINCTCOUNT(Query1[order_number_id]), FILTER(Query1, Query1[product_type] = "Subscriptions"), FILTER(ALL('Date Table'[Weekday]), 'Date Table'[Weekday] IN {"Monday","Tuesday","Wednesday","Thursday","Friday"}), FILTER(ALL('Time Table'[Time]), 'Time Table'[Time] >= TIME(9,0,0) && 'Time Table'[Time] <= TIME(15,0,0)))

 

 

And the second and third filters are not doing what is expected. Basically the calculation is being applied to this entire matrix, rather than just Monday-Friday from 9am to 5pm. The first filter is working fine. 

 

 nhmpp_0-1668791752597.png

 

Date Table[Weekday] makes up the columns, and Time Table[Time] makes up the rows, so I am not sure what is going wrong here. I have also tried this measure with the same results:

 

CALCULATE(Parameter[Parameter Value]*DISTINCTCOUNT(Query1[order_number_id]), FILTER(Query1, Query1[product_type] = "Subscriptions"), FILTER('Date Table', 'Date Table'[Weekday] IN {"Monday","Tuesday","Wednesday","Thursday","Friday"}), FILTER('Time Table', 'Time Table'[Time] >= TIME(9,0,0) && 'Time Table'[Time] <= TIME(15,0,0)))

 

 

I am at a loss as to why only the second and third measures are not applying! Any help is appreciated!

1 ACCEPTED SOLUTION
nhmpp
Helper I
Helper I

I actually solved this myself after posting using this measure instead:

 

IF(MAX('Date Table'[Weekday]) IN {"Monday","Tuesday","Wednesday","Thursday","Friday"} && MAX('Time Table'[Time]) >= TIME(9,0,0) && MAX('Time Table'[Time]) <= TIME(15,0,0), CALCULATE(Parameter[Parameter Value]*DISTINCTCOUNT(Query1[order_number_id]), FILTER(Query1, Query1[product_type] = "Subscriptions")) , 0)

View solution in original post

1 REPLY 1
nhmpp
Helper I
Helper I

I actually solved this myself after posting using this measure instead:

 

IF(MAX('Date Table'[Weekday]) IN {"Monday","Tuesday","Wednesday","Thursday","Friday"} && MAX('Time Table'[Time]) >= TIME(9,0,0) && MAX('Time Table'[Time]) <= TIME(15,0,0), CALCULATE(Parameter[Parameter Value]*DISTINCTCOUNT(Query1[order_number_id]), FILTER(Query1, Query1[product_type] = "Subscriptions")) , 0)

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.