@Peter D'Haeyer I use global filters for other functionality so am familiar with them. Not sure they help with default filters though.
Yes - you could add a global parameter with a default value. But to remove this default the user would have to change a global parameter. Which in a dashboard would mean closing the dashboard, changing the global param, and then re-opening. It just doesn't have a good user story.
If the user creates an ad-hoc report and applies a new filter, then this would clash with the global param filter. resulting in no data. again, the user has to remember to remove the global param first.
Default filters are easy to do in a report - just give a report prompt a default value - but we need a default that works in dashboards and ad-hoc new reports created by business users.
It's a big piece of missing functionality. I think the assumption by IBM / Data Modules is that all dimensions are additive, and that if you don't have a filter on a dimension, then the sum of all values is the correct value to show.
Those with data modelling experience no that not all dimensions simply aggregate through addition. And indeed Cognos knew this as PowerPlay got this concept years ago.
------------------------------
Marc Reed
------------------------------
Original Message:
Sent: Fri January 03, 2025 03:22 AM
From: Peter D'Haeyer
Subject: Additional filter for Users in Dashboards for default data view
@Marc Reed, have you considered applying global parameters? https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=parameters-using-global
------------------------------
Peter D'Haeyer
Original Message:
Sent: Thu January 02, 2025 03:04 AM
From: Marc Reed
Subject: Additional filter for Users in Dashboards for default data view
Default filtering is functionality I have been asking to be in Cognos for a while. If you search this board you will probably see me asking the same question to see if anyone has good ideas how to implement this kind of functionality.
Ideally, any dashboard or report created against a DM/FM should apply a default filter. With the user having the option to remove/change the default filter. When explaining this to IBM I have used the example of a currency dimension - I want my currency dimension to have a default filter of USD. If there is no default on the dimension then the user would see the sum of all currencies which is a meaningless value. If no specific filter is applied the the product should apply a default filter of USD.
For anyone with an OLAP/PowerPlay background - Cognos provided this exact functionality with the Default Member options, so we know it is needed requirement.
I have yet to find anyway to add such functionality to a DM.
Yes you could create a default filter within the DM, and the dashboard author apply that filter, but there is no way for a consumer to remove that filter without going into edit mode.
Am I missing something?
------------------------------
Marc Reed
Original Message:
Sent: Fri December 27, 2024 06:23 AM
From: Rico Zimmermann
Subject: Additional filter for Users in Dashboards for default data view
Hello Thomas,
this is kind of what I was looking for. Thanks a lot!
I inserted a new calculation to the Dashboard, that checks if the string for # sq ( CSVIndentifyNameListe() ) # includes the Users role/ group and created a filter for the Dashboard. Works very well.
Best regards Rico
------------------------------
Rico Zimmermann
Original Message:
Sent: Mon December 23, 2024 03:50 AM
From: Thomas Wolf
Subject: Additional filter for Users in Dashboards for default data view
Hi Rico,
you might want to try the macro expressins CAMIDList or CSVIdentityNameList. To test them, just define a query containing two query items:
- expression definition for item 1: # sq( CAMIDList () ) #
- for item 2: #sq(CSVIdentityNameList ())#
You will see, there is a load of information you can harvest. When using them in a data module or a calculation, the generated SQL can become rather lengthy. In that case, grepping just the relevant information might help improving your query's performance.
Best, Thomas
------------------------------
Thomas Wolf
BI-Manager
Techniker Krankenkasse
Hamburg
Original Message:
Sent: Fri December 20, 2024 05:38 AM
From: Rico Zimmermann
Subject: Additional filter for Users in Dashboards for default data view
Dear Community,
We would like to provide dashboards for our users with pre filtered data according to their roles/groups.
The user should be able to remove the filter while using the dashboard and then see additional data, so we don't want to use the security filters on tables.
Is there a possibility like a function on a query that checks the logged in users roles/ groups to create a default data filter, that a user is allowed to remove? Or do you have an idea how to implement this?
Thank you for your help!
Best regards, Rico
------------------------------
Rico Zimmermann
------------------------------