Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Solved! Go to Solution.
Hi @Anonymous,
AFAIK, the current DAX expressions are not able to affect the filter/slicer selections. You can't use them to change the selection or cancel current activities items.
If you means to ignore the filter interatiosn from a specific field, you can use isfiltered with all functions to ignore specific filters to affect the DAX formula calculations.
ISFILTERED, ISCROSSFILTERED – DAX Guide - SQLBI
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
BTW, selectedvalue function is suitable for single selection, if you selected multiple items without setting 'alternate Result' it will return a blank result. You can try to use the following formula to show current selections:
Selected PN =
VAR selectedPN =
CONCATENATEX ( VALUES ( DimPnRework[pn] ), [pn], "," )
RETURN
"pn:"
& IF (
COUNTROWS ( VALUES ( DimPnRework[pn] ) )
= COUNTROWS ( DISTINCT ( ALL ( DimPnRework[pn] ) ) ),
"All pn",
selectedPN
)
Regards,
Xiaoxin Sheng
Hi @Anonymous,
AFAIK, the current DAX expressions are not able to affect the filter/slicer selections. You can't use them to change the selection or cancel current activities items.
If you means to ignore the filter interatiosn from a specific field, you can use isfiltered with all functions to ignore specific filters to affect the DAX formula calculations.
ISFILTERED, ISCROSSFILTERED – DAX Guide - SQLBI
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI
BTW, selectedvalue function is suitable for single selection, if you selected multiple items without setting 'alternate Result' it will return a blank result. You can try to use the following formula to show current selections:
Selected PN =
VAR selectedPN =
CONCATENATEX ( VALUES ( DimPnRework[pn] ), [pn], "," )
RETURN
"pn:"
& IF (
COUNTROWS ( VALUES ( DimPnRework[pn] ) )
= COUNTROWS ( DISTINCT ( ALL ( DimPnRework[pn] ) ) ),
"All pn",
selectedPN
)
Regards,
Xiaoxin Sheng
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |