Forum Discussion

jaryszek's avatar
jaryszek
Icon for Super User rankSuper User
11 months ago
Solved

Java SDK script - how to check if filter on page is part of drill through?

Hello Guys,

I am embedding a Power BI report within my app based on the JavaScript SDK.

How to check if the filter on the page is part of drill through field?

Best,
Jacek

  • Anonymous's avatar
    Anonymous
    10 months ago

    Hi jaryszek 

    Thank you for reaching out to the Microsoft Fabric Forum Community.


    You can retrieve all filters on a page using page.getFilter( ), but you cannot reliably know why each filter was applied (drill-through vs manual).
    Use filters in a Power BI embedded analytics report | Microsoft Learn

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Thanks.

     

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi jaryszek 

    Could you please elaborate your question, what you want to check exactly? do you want to Check / identify drill through filters programmatically.

     
    Thanks.

    • jaryszek's avatar
      jaryszek
      Icon for Super User rankSuper User

      Hi,

      yes i want to identyify through java sdk which filters are coming from drill through and which one are coming from usual page filters.

      Best,
      Jacek

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi jaryszek 

        Thank you for reaching out to the Microsoft Fabric Forum Community.


        You can retrieve all filters on a page using page.getFilter( ), but you cannot reliably know why each filter was applied (drill-through vs manual).
        Use filters in a Power BI embedded analytics report | Microsoft Learn

        If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

        Thanks.