{"id":73203,"date":"2023-05-04T12:08:58","date_gmt":"2023-05-04T12:08:58","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=73203"},"modified":"2023-05-04T12:08:58","modified_gmt":"2023-05-04T12:08:58","slug":"answer-by-warren-for-how-to-remove-dynamic-column","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=73203","title":{"rendered":"Answer by warren for how to remove dynamic column"},"content":{"rendered":"<p>If I understand correctly, you have some NULL fields after your <code>join<\/code><\/p>\n<p>If that is correct, the following <em>should<\/em> get you at least close:<\/p>\n<pre><code>&lt;search that gets through the `join`&gt;\n| stats values(*) as * by &lt;unique fields you know exist&gt;\n| fillnull value=&quot;-&quot;\n<\/code><\/pre>\n<p><code>stats values(...)<\/code> will <em>only<\/em> include fields for which there is <em>at least<\/em> one value in the previous events<\/p>\n<p><code>stats values(...)<\/code> <em>will<\/em> populate a NULL value for events that <em>did not have<\/em> the field in question &#8211; <em>iff<\/em> it existed with a value in <em>ay<\/em> event in the set<\/p>\n<p>So follow it up with <code>fillnull<\/code> so you know where the fields existed (vs did not exist)<\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76165216\/how-to-remove-dynamic-column\/76172997#76172997<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I understand correctly, you have some NULL fields after your join If that is correct, the following should get you at least close: &lt;search that gets through the `join`&gt; | stats values(*) as * by &lt;unique fields you know exist&gt; | fillnull value=&quot;-&quot; stats values(&#8230;) will only include fields for which there is at &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=73203\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for how to remove dynamic column<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-73203","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73203"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73203\/revisions"}],"predecessor-version":[{"id":73204,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/73203\/revisions\/73204"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73203"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=73203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}