Last active
November 4, 2022 15:59
-
-
Save Hugoberry/e3650217bbeb8fd6673684829827417f to your computer and use it in GitHub Desktop.
A jq parser for the internal PowerBI file *.pbix/Report/Layout. It surfaces the columns from the datamodel used in the visualizations.
This file contains 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
[.sections[] | { | |
page: .displayName, | |
visuals: [ .visualContainers[].config | | |
fromjson | | |
.singleVisual | | |
select(has("projections"))| | |
{ | |
type:.visualType, | |
projections: .projections | | |
{(keys[0]):[.[keys[0]][] | | |
.queryRef | | |
match("([^/(])[^/(/)]+(?=[/)])",".*") | | |
.string | |
]} | |
}] | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
jq
playgroundhttps://jqplay.org/s/IqsCEqJLFWV