Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
----please refer below picture------
I am trying to create a measure that, if I select anything from Product Name filter visual, it will return (%)PRODUCT Measure, if there isnt anything selected in Product Name filter visual then it will return (%)SUB-PRODUCT Measure.
Below case, I tried to use ISFILTER Function like below;
And, it didnt work. I didnt select anything from filter visual, but it is returning (%)PRODUCT.
Note: I need to keep PRODUCT NAME in the table
Do you have any solution?
Thank you!
Solved! Go to Solution.
@Anonymous , Product name is used in visual, so isfiltered is true because of that
try like
var _is = calculate(ISFILTERED(PRODUCT[PRODUCT_NAME]), allselected())
return
IF (_is ,(%)PRODUCT,(%)SUB-PRODUCT)
@Anonymous , Product name is used in visual, so isfiltered is true because of that
try like
var _is = calculate(ISFILTERED(PRODUCT[PRODUCT_NAME]), allselected())
return
IF (_is ,(%)PRODUCT,(%)SUB-PRODUCT)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 46 | |
| 43 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 198 | |
| 126 | |
| 102 | |
| 69 | |
| 53 |