Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AndrejZitnay
Post Patron
Post Patron

Combination of hasnofilter

Hello Guys,

 

I have to HASNOFILTER OPTION

 

QuestionSelectCheck = IF(HASONEFILTER('Retention New / Used Table'[Old Type]),"New","Used")

QuestionSelectCheck2 = IF(HASONEFILTER('Retention Product Table'[Old agreement product]),"PCP","Non PCP")

 

Basically i have two slicers driving 4 visuals.

I need those visuals to be blank until one or other will be visible.

I can't use both at some time in visual level filters.

 

Is there way how to combine them to one if formula?

 

Many thanks.

 

Andrej

3 REPLIES 3
Taamul90
New Member

how can I raise a question? I want to post my qestion but I couldn't.

you can combine by adding ||  between the two of hasnofilter, but there is one condition to be applied.

*(|| = or)

Eric_Zhang
Employee
Employee


@AndrejZitnay wrote:

Hello Guys,

 

I have to HASNOFILTER OPTION

 

QuestionSelectCheck = IF(HASONEFILTER('Retention New / Used Table'[Old Type]),"New","Used")

QuestionSelectCheck2 = IF(HASONEFILTER('Retention Product Table'[Old agreement product]),"PCP","Non PCP")

 

Basically i have two slicers driving 4 visuals.

I need those visuals to be blank until one or other will be visible.

I can't use both at some time in visual level filters.

 

Is there way how to combine them to one if formula?

 

Many thanks.

 

Andrej


@AndrejZitnay

Bascially it is not possible. There're might be some workaround using tricky measures, please post more details like sample data, expected output etc to have a better understanding on your scenario.

Hello @Eric_Zhang

 

Thank you for your clarification.

 

I will try to find out something else.

I think that I will use Bookmarks Pane & Selection Pane.

 

Effectively I need to hide some figures and with bookmarks I can hide whole selection rather than just some numbers.

 

Thank you .

 

Kind regards.

 

Andrej

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.