Showing results for 
Search instead for 
Did you mean: 
Community Team Member
Community Team Member

Analytical Need 

Often times, we are required to present all the existing records in our dimension whether we have or don't have records to aggregate for it from our fact table or simply, perform a left join on-demand instead of the by-product inner-join.

The Challenge

In our example, we need to be able to see all the dates from the date dimension and the total sales per day for the account that we select.
Ideally, for example, the user should be able to filter account: A and see the following result:


To solve this issue, we will need to download the Filtered Measure plugin (certified) no modeling solution is required.
The idea will be to use the Filtered Measure to create an OR statement on the formula.
This will allow us to enforce the 'Account' filter only on the formula level and not affect the retrieval of all the possible dates.
Add an Account filter to the dashboard.
  1. Create a widget and add 'Days in Date' to the Rows and the following formula for the aggregation:
  1. (sum([Total Sum]),[@Account] )
    Aggregate the SUM from the FACT and pick the Account as [All Items] as a filter in the second part of the brackets: 
  2. Rename the Account to '@Account'. This will let the plugin know to enforce the filter only on this level.
  3. Add a calculation from the Dates dimension as Unique count of days * 0 
    The filter will not be enforced on this calculation, hence, showing all the dates.
  4. Test.
Account A:
Account B:
 Cube & Dashboard reference: LeftJoin.ecdata, LJTEST.dash
That's it!
Version history
Last update:
‎03-02-2023 09:48 AM
Updated by:
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

Sisense Privacy Policy