Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating New Rule "Active report-level filter" #37

Open
rafaelxkr opened this issue Jul 28, 2024 · 0 comments
Open

Creating New Rule "Active report-level filter" #37

rafaelxkr opened this issue Jul 28, 2024 · 0 comments

Comments

@rafaelxkr
Copy link

@NatVanG ,
Could you help me with this issue, please?
I have been trying to create this rule below, in order to identify if each model has its active report-level filter. This is to advice the users to use Power Query, instead using report-level filter, but it doesn't work properly in PBI Inspector.

I tested JSON Logic and worked.

{
          "name": "[test] Filter report level",
          "description": "test",
          "disabled": false,
          "logType": "warning",
          "path": "$",
          "pathErrorWhenNoMatch": true,
          "test": [
            {
              "map":[
                {
                "filter": [
                    {
                      "var": "filters"
                    },
                    {
                      "some" : [ 
                        {"var": "filter.Where"},
                        {"var": "Condition"}
                      ]
                    }
                  ]
                },
              {"var": "name"}
              ]
            },
            {
              "filterArray": ""
            },
            []
          ]
        }

I pasted report.json in https://json-everything.net/json-logic/ and worked.
image

Always result is empty.
image

PBI Inspector, I don't have error.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant