TM1Web Supress filters that lead to empty tables

Post Reply
Thjodolf
Posts: 4
Joined: Fri Jun 09, 2023 11:09 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2303

TM1Web Supress filters that lead to empty tables

Post by Thjodolf »

Hi,

I have an issue with a websheet in TM1-Web.
In the websheet I have a filter where users can choose any element from an account-dimension.
I used the SUBNM-formula without subset.

Problem is, users can pick elements resulting in an empty data-table.
I hoped, supressing zeros would fix it (which it didn't). :)

Is it achievable to only offer elements of a dimension that contain values for the data-table to avoid empty data-tables?
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: TM1Web Supress filters that lead to empty tables

Post by Wim Gielis »

Hello,

Yes. Use a subset name in your SUBNM towards a public dynamic subset (calculated with an MDX statement).

For instance,

Code: Select all

Filter( TM1FilterByLevel( TM1SubsetAll( [BS_Account] ), 0), [BalanceSheet].([FIN_Year].[2022],[FIN_Period].[P07],[FIN_Scenario].[Actual],[BS_Measures].[Amount]) <> 0)
This would filter balance sheet accounts that have a non-zero balance in the balance sheet cube.
The values for other dimensions like year and period could come from Excel cells or other cube cells (like a system cube).
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Thjodolf
Posts: 4
Joined: Fri Jun 09, 2023 11:09 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2303

Re: TM1Web Supress filters that lead to empty tables

Post by Thjodolf »

Hi Wim,

thanks for your answer and sorry I respond so late (was on vacation).
I didn't think of your solution and it works very well.
Post Reply