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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PradeepDive
Helper II
Helper II

HasOneFilter Issue

Hi All,

 

I am creating a drillthrough button in my report and for which I am using HASONEFILTER to see if a filter is applied or not.

I also have a slicer (dropdown) in my page. Basically what the formula does is checks if user selects a value from the slicer and if selected it give me a page name. The page name is used as a navigation to drillthrough page. Below is my DAX

 

MyDrillthrough Navigation =
        Var _isValueSelected = HASONEFILTER('Project List'[ORG])
Return
        IF(_isValueSelected ,"Details Page","")

 

 I one slicer dropdown for 'Project List'[ORG]) and another visual of a small metrix table as 'Project List'[ORG]) and Cost

 

So now the strange part, when I select ORG from dropdown the drillthrough button doesn't work. BUT if I select ORG from the metrix visual then the drillthrough button works...

 

I am sure dropdown is the issue ? Does HASONEFILTER doesn't work with slicers ?

 

Please help. 

1 REPLY 1
amitchandak
Super User
Super User

@PradeepDive ,

Try isfiltered

 

IF(isfiltered('Project List'[ORG]) ,"Details Page","")

 

refer this for difference https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.