Last active
June 21, 2025 02:06
-
-
Save kerski/0199fa280e939c484aa9a606b70077bc to your computer and use it in GitHub Desktop.
PBIX Inspector - Slicer Search Input Should Be Empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pbiEntries": [ | |
{ | |
"name": "reportLayout", | |
"pbixEntryPath": "Report/Layout", | |
"pbipEntryPath": "report.json", | |
"contentType": "json", | |
"codepage": 1200, | |
"rules": [ | |
{ | |
"id": "SLICER_SEARCH_INPUT_SHOULD_BE_EMPTY", | |
"name": "Slicer search input should be empty", | |
"description": "Slicer search input should be empty to avoid inadvertent filtering.", | |
"disabled": false, | |
"logType": "error", | |
"forEachPath": "$.sections[*]", | |
"forEachPathName": "$.name", | |
"forEachPathDisplayName": "$.displayName", | |
"path": "$.visualContainers[*].config", | |
"pathErrorWhenNoMatch": false, | |
"test": [ | |
{ | |
"map": [ | |
{ | |
"filter": [ | |
{ | |
"var": "visualsConfigArray" | |
}, | |
{ | |
"and": [ | |
{ | |
"in": [ | |
{ | |
"var": "singleVisual.visualType" | |
}, | |
[ | |
"slicer" | |
] | |
] | |
}, | |
{ | |
"!!": [{ | |
"var": "singleVisual.objects.general.0.properties.selfFilter.filter.Where.0.Condition.Contains.Right.Literal.Value" | |
}] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"var": "name" | |
} | |
] | |
}, | |
{ | |
"visualsConfigArray": "." | |
}, | |
[] | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment