FlexReport Null Filters return records that contain Null line items
search cancel

FlexReport Null Filters return records that contain Null line items

book

Article ID: 432163

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

You may find within FlexReports that use Not Null and Null filters, return null records. 

Resolution

This is due to a pipeline change on the CloudHealth side, some null line items will now return '' rather than an actual Null. 

To workaround this please update the filter on the null field to include NOT IN ('') in addition to the IS NOT NULL filter see example below - 

{
  "sqlStatement": "SELECT timeInterval_Month AS Month, product_instanceType AS Product_instanceType, SUM(lineItem_NetUnblendedCost) AS SUM_lineItem_NetUnblendedCost FROM AWS_CUR WHERE product_instanceType NOT IN ('') AND product_instanceType IS NOT NULL GROUP BY timeInterval_Month, product_instanceType",
  "needBackLinkingForTags": true,
  "dataGranularity": "MONTHLY",
  "timeRange": {
    "last": 3
  },
  "limit": -1
}