Hi there,
The easy way would be to add a 'Folder' pane as the left most column. (The built-in Facets column that shows folder structure - right-click column header > Columns > Folder). It should show the folders starting inside the monitored music folder, so if they are actually "top-level" folders, you would have to be monitoring the root drive (in Library > Configure > under Music Folders) to see those folders. In other words, if you are monitoring each individual folder, that would not work.
Otherwise you could setup a column using $if functions to filter based on the %path% -
$if($strstr($directory_path(%path%),\Artists\),Artists)
^ IF the %path% HAS string \Artists\ (use backslashes to get exact match of folder name), THEN show text "Artists". Following that just add additional $if functions for each folder -
$if($strstr($directory_path(%path%),\Artists\),Artists,$if($strstr($directory_path(%path%),\Compilations\),Compilations,$if($strstr($directory_path(%path%),\New\),New)))
^ Show "Artists", ELSE "Compilations", ELSE "New"
An alternative way would be to get the actual folder name with -
$directory(%path%,3)
Extracts directory name from the file path; goes up by n levels. - Title Formatting Reference
However, if you keep music files in differing levels of folders (perhaps a "Disc 1" folder for some albums but not others), that would not show the correct folder, since it is relative to the file location. Every file in the library would have to be in the same folder level.
Cheers