Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
I want to write a Column that when field filter is filtered it will get the value in field1 (bins) else it will get the value in field2 (bins)
I have tried this but it not work
DynamicColumn = IF(
NOT(ISBLANK(SELECTEDVALUE(DataTable[filter]))),
'DataTable'[field1 (bins)],
'DataTable'[field1 (bins)]
)
anyone have solution for this case
Solved! Go to Solution.
In Power BI, calculated columns are evaluated during data refresh and are not affected by user interactions like slicer selections or report filters. This means that a calculated column cannot dynamically change based on whether a field is filtered in the report.
hi @pdlv ,
if you are writing a measure, try like:
DynamicColumn = IF(
NOT(ISBLANK(SELECTEDVALUE(DataTable[filter]))),
MAX('DataTable'[field1 (bins)]),
MAX('DataTable'[field2 (bins)])
)
if you are writing a calculated column, this won't work, as calculated column/table is not supposed to respond to visual behaviors that you intend to capture with SELECTEDVALUE.
Thanks guys 😅
hi @pdlv ,
if you are writing a measure, try like:
DynamicColumn = IF(
NOT(ISBLANK(SELECTEDVALUE(DataTable[filter]))),
MAX('DataTable'[field1 (bins)]),
MAX('DataTable'[field2 (bins)])
)
if you are writing a calculated column, this won't work, as calculated column/table is not supposed to respond to visual behaviors that you intend to capture with SELECTEDVALUE.
In Power BI, calculated columns are evaluated during data refresh and are not affected by user interactions like slicer selections or report filters. This means that a calculated column cannot dynamically change based on whether a field is filtered in the report.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |