Skip to content

Instantly share code, notes, and snippets.

@kerski
Last active June 21, 2025 02:06
Show Gist options
  • Save kerski/0199fa280e939c484aa9a606b70077bc to your computer and use it in GitHub Desktop.
Save kerski/0199fa280e939c484aa9a606b70077bc to your computer and use it in GitHub Desktop.
PBIX Inspector - Slicer Search Input Should Be Empty
{
"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