Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi everyone,
I am very new to PowerBI (started using yesterday), and I have no experience with any other BI products.
I realise that I might be jumping into deep water, but I am a little pressed in time, so I am learning this as I go.
I have created a tree mapping of a directory saved in json format that looks like this:
(due to length limitations I cannot post complete json)
{ "Name": "Netbackup 7.7.2", "Path": "D:\\Netbackup 7.7.2", "Size": 52262235491, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 22541398427 }, { "Ext": ".txt", "Size": 9093 }, { "Ext": ".zip", "Size": 3796755129 }, { "Ext": ".tar", "Size": 7567052800 }, { "Ext": ".1of3", "Size": 3670016000 }, { "Ext": ".2of3", "Size": 3670016000 }, { "Ext": ".3of3", "Size": 227020800 }, { "Ext": ".rpm", "Size": 7567035167 }, { "Ext": ".md5_checksum", "Size": 144 }, { "Ext": ".sha1_checksum", "Size": 160 }, { "Ext": "", "Size": 53506 }, { "Ext": ".ova", "Size": 1226192896 }, { "Ext": ".inf", "Size": 47 }, { "Ext": ".exe", "Size": 30586768 }, { "Ext": ".ini", "Size": 504 }, { "Ext": ".DLL", "Size": 4651008 }, { "Ext": ".cab", "Size": 1606342455 }, { "Ext": ".dll", "Size": 16944616 }, { "Ext": ".EXE", "Size": 12369312 }, { "Ext": ".msi", "Size": 324038742 }, { "Ext": ".bat", "Size": 1936 }, { "Ext": ".gif", "Size": 369 }, { "Ext": ".css", "Size": 3205 }, { "Ext": ".jpg", "Size": 358169 }, { "Ext": ".js", "Size": 14375 }, { "Ext": ".htm", "Size": 39300 }, { "Ext": ".pdf", "Size": 96400 }, { "Ext": ".xsl", "Size": 729700 }, { "Ext": ".dis", "Size": 130 }, { "Ext": ".cmd", "Size": 29203 }, { "Ext": ".xml", "Size": 469698 }, { "Ext": ".bmp", "Size": 6252 }, { "Ext": ".lst", "Size": 3180 }], "Content": [{ "Name": "Files", "Path": ".", "Size": 26338156203, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 22541398427 }, { "Ext": ".txt", "Size": 2647 }, { "Ext": ".zip", "Size": 3796755129 }], "Content": [{ "Name": "NetBackup_7.7.2_AIX64.tar.gz", "Path": "D:\\Netbackup 7.7.2\\NetBackup_7.7.2_AIX64.tar.gz", "Size": 1747447135, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 1747447135 }], "Content": [] }, { "Name": "NetBackup_7.7.2_CLIENTS1.tar.gz", "Path": "D:\\Netbackup 7.7.2\\NetBackup_7.7.2_CLIENTS1.tar.gz", "Size": 2944873375, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 2944873375 }], "Content": [] }, { "Name": "NetBackup_7.7.2_CLIENTS2.tar.gz", "Path": "D:\\Netbackup 7.7.2\\NetBackup_7.7.2_CLIENTS2.tar.gz", "Size": 2016191582, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 2016191582 }], "Content": [] }, { "Name": "NetBackup_7.7.2_Download_README-Info.txt", "Path": "D:\\Netbackup 7.7.2\\NetBackup_7.7.2_Download_README-Info.txt", "Size": 2647, "AccessDenied": "False", "Statsistics": [{ "Ext": ".txt", "Size": 2647 }], "Content": [] }, { "Name": "NetBackup_7.7.2_HPIA.tar.gz", "Path": "D:\\Netbackup 7.7.2\\NetBackup_7.7.2_HPIA.tar.gz", "Size": 1691605152, "AccessDenied": "False", "Statsistics": [{ "Ext": ".gz", "Size": 1691605152 }], "Content": [].....
My end goal is to create a display similar (not in display per se- but in it's drill down functionality) to WinDirStat (whoever is unfamilier: https://www.bleepstatic.com/download/screenshots/w/windirstat/windirstat.png.)
the first problem I am facing is the Drill down-
I have already managed to import the json and convert my values into tables (right clicking the column and choosing 'add as new query):
However I can't create a new query from each and transform it manually. Is there a way to make this happen automatically?
(the structure of the content and statistics objects are constant).
I assume that once I get the queries setup I can continue to create the dashboard and display.
thanks in advance for the help
Ok,
I have managed to create a function that creates a table out of each list recursivly so my query brings back nested tables like so:
my question now is how to create a display of it using the treemap correctly?
this is how I did it so far:
but when I drill down this is what I get:
You also need to expand the column containing a related table.
https://msdn.microsoft.com/en-us/library/mt260756.aspx
thanks for the reply.
can you explain a little in depth please?
I fail to understand how to apply this to the tables I have (see the picture above), as each nested table is Identical to the parent. also this solution doesn't seem like it will be able to process too many levels of nested tables.
The Advanced Editor gives you full control over your query, you may do research into it.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
112 | |
105 | |
94 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |