Suppressing empty rows in consolidation with string elements

Post Reply
biggie
Posts: 9
Joined: Wed Jul 03, 2024 9:50 am
OLAP Product: IBM TM1
Version: 2.0.88
Excel Version: 2019

Suppressing empty rows in consolidation with string elements

Post by biggie »

Hi. I need your advice on the next problem.

I have a cube, with dimensions:
Years (Year_Total - consolidation; Year_17, Year_18... - numeric)
Period (Select level-0 subset)
Rates (R1, R2, R3, R4 - string elements)

Look at the screenshots below.
The user can set the Rates values ​​for specific elements of the Year dimension (for example, Year_17).

Image

Also, user can set the Rates values for Total_Year element

Image

Next, if I select the Total_Years consolidation (with enabled suppression of zero rows), I see one row with empty cells. Obviously, IBM is trying to display rows that have values ​​on the Year = child element of the Years_Total consolidation (Year_17), but for some reason the cells are empty.

Image

Is there a way to fully supress such "pseudo-empty" rows?
I know that consolidating string elements is a bad way... :?

UPD:
I know it's bad to ask 2 different questions in the same topic, but I have a problem writing an MDX filter. I want to find all elements of Period dim for R1 element of Rate dim in the cube is set to Value12. Here is the code, but it doesn't find the element (I'm expecting an element Фев)

Code: Select all

FILTER([Period].MEMBERS , [CubeFrom].([Rate].[R1]) = "Value12")
What am I doing wrong?

UPD 2
I tried filter by this way, its work. But it's really the only one way to filter string measures?

Code: Select all

GENERATE(TM1FILTERBYLEVEL(TM1SUBSETALL([Year]) , 0) , FILTER([Period].MEMBERS , INSTR([CubeFrom].([Year].CURRENTMEMBER,[Rate].[R1]) , "Value12") > 0))
Thanks
Post Reply