Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I am trying to compare columns in my FILTER function but this takes away my ability to add an slicers on the report (not to mention visual, page and report level filters). Please see below.
Solved! Go to Solution.
Hi @v-rzhou-msft ,
I figured it out. The key was to add MIN to the calendar dates.
Hi @Anonymous ,
You can add multiple table filter like below:-
Backlog =
IF (
'Calendar'[Date] <= TODAY (),
CALCULATE (
[Volume],
FILTER (
'Case',
(
( 'Case'[opened_at] <= 'Calendar'[Date] )
&& (
( 'Case'[resolved_at] > 'Calendar'[Date] )
|| ISBLANK ( 'Case'[resolved_at] )
)
)
),
FILTER ( 'table2', 'table2'[column] <= 'calender'[date] ),
FILTER ( 'table3', 'table3'[column] <= 'calender'[date] )
),
BLANK ()
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
I tried this, but still unable to get it to work..
Hi @Anonymous ,
According to your statement, I think you can try selectvalue or values function to catch value in slicer, then add it in filter. It is not necessary to add so many parentheses in one filter field in your code.
Backlog =
IF (
'Calendar'[Date] <= TODAY (),
CALCULATE (
[Volume],
FILTER (
ALLEXCEPT ( 'Case', 'Case'[dv_assignment_group] ),
'Case'[opened_at] <= 'Calendar'[Date]
&& 'Case'[resolved_at] > 'Calendar'[Date]
|| ISBLANK ( 'Case'[resolved_at] )
)
),
BLANK ()
)
It is hard for us to find the solution or update your code only based on this code. Please share a sample file with us and show us a screenshot with the result you want. This will make us easier to find the solution.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-rzhou-msft,
All I am looking for is a formula that will allow the end users to dynamically interact with the data. Using the FILTER function blocks the ability to use slicers, visual, page, report level filters etc. Does this make sense?
Thanks,
sseel
Hi @v-rzhou-msft ,
I figured it out. The key was to add MIN to the calendar dates.
Hi @Anonymous ,
As far as I know, use the FILTER function will not block the ability to use slicers, visual, page, report level filters etc.
Firstly, please make sure that you are creating a measure by your code. In Power BI, only measures could return dynamic results by slicers or filters.
Backlog =
IF (
'Calendar'[Date] <= TODAY (),
CALCULATE (
[Volume],
FILTER (
ALLEXCEPT ( 'Case', 'Case'[dv_assignment_group] ),
'Case'[opened_at] <= 'Calendar'[Date]
&& 'Case'[resolved_at] > 'Calendar'[Date]
|| ISBLANK ( 'Case'[resolved_at] )
)
),
BLANK ()
)
In this measure, ALLEXCEPT will block the filter from other columns in slicers, visual/page/report level filters except [dv_assignment_group]. You can add columns you want to filter the measure in ALLEXCPET function.
For reference: The (ALL, ALLSELECTED & ALLEXCEPT) Code
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Samarth,
Correct, but I need the flexibility of the report to be used by multiple users who may require different slicers/filters. This will only solve the issue for one user, not all users who all require different filter selections. Does this make sense?
Thanks,
sseel
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
79 | |
61 | |
60 | |
58 |
User | Count |
---|---|
151 | |
113 | |
99 | |
80 | |
72 |