Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, I am trying to create running calculation in pivot table (PSI), but for null values it is not showing data. I have master calendar created it is connected to data table, but still it is not showing 'null' values for missing data rows and PSI calculation is not available, it is running but only for columns with values available.
PSI:
Sum(
Aggr(
RangeSum(
Above(
Alt(Sum(SUPPLYQTY),0) - Alt(Sum(DEMANDQTY),0)*-1,
0,
RowNo()
)
),
ITEMID,
YearWeek
))
DataLoadEditor:
You seem to be using a field from the main table (ITEMID) in your AGGR(), so this behavior is as expected. You'd need to change that if you want to show cases where that field is missing.
I would like to show 'all' weeks from Master Calendar table and run PSI calculation for all weeks (even with null values). So make Master Calendar to filter PSI table, not reverse. Is that possible?
It's not possible - at least not in a sensible way. The tables are associated and therefore the missing key-values respectively the NULL's will impact each other. In some scenarios you may get the NULL's with alt() or range-functions and/or {1} set analysis and/or calculated dimensions which enforce the entire dimension-table within the object. But the needed efforts and the complexity could become quite high and will also cause various side-effects in regard to the performance and the usability.
Or in other words you will always need a dimension-value to show a calculation-result against it - and if the measures come from the facts all wanted dimension-values must be within the facts. To have them in the dimensions is not sufficient.
The most practically workaround is usually to populate the missing data.
Beside this the mentioned NULL's are neither a technically nor a logically error which must mandatory be resolved - else the NULL (gaps in the charts and grey field-values in the selection-objects) itself is a valuable information.