Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |