Product:

Mirantis Docker

https://docs.mirantis.com/mcr/25.0/single/ 

Issue:

Try to install Mirantis (docker) software on new Windows 2022 server. Get error like:

.\install.ps1 : File D:\temp\install.ps1 cannot be loaded. The contents of file
D:\temp\install.ps1 might have been changed by an unauthorized user or process, because the hash of
the file does not match the hash stored in the digital signature. The script cannot run on the specified system. For
more information, run Get-Help about_Signing..
At line:1 char:1
+ .\install.ps1 -Offline
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

 

Suggested Solution:

Check that you have the same local on new server as on old server with powershell command:

GET-WinSystemLocale
LCID Name              DisplayName
---- ----              -----------
1033 en-US             English (United States)

Change the security level with a powershell command:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

 

This will give this response text:
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “N”): Y

Run then this command to install mirantis docker:
 .\install.ps1 -Offline
Installing the containers feature. It is a prerequisite for containers on Windows and requires a reboot.
Using preloaded zip File D:\temp\Docker.zip for installing package Docker
Using preloaded zip File D:\temp\Containerd.zip for installing package Containerd
Installed Docker 25.0.7m3, build caad55120f4543209cf95baeb66ea33b675a771
Installed Containerd 1.6.36
Install/upgrade completed
WARNING: Your machine needs to be rebooted now. Installed packages will not work without reboot.

PS D:\temp>

 

More Information:

https://learn.microsoft.com/en-us/troubleshoot/windows-client/system-management-components/signed-powershell-script-fails-hash-mismatch 

To get docker to create the container files on folder d:\docker, you need to create a text file in folder C:\ProgramData\docker\config, that looks like this;

 

Product:

Microsoft SQL Azure database

Issue:

How in a view, list a value, instead of blank – in case the record have no value in that column?

Solution:

Use

COALESCE(NULLIF([columntocheck],”), [columntoshowinstead]) AS [nameofcolumninview]

Where the function check if equal to ”, and then replace with other value listed.

e,g, if columntocheck is ” we replace it with a value from column columntoshowinstead.

 

The View can be created with SQL like this:

CREATE VIEW [DBO].[KontoView]
------------------------------------------------------------
-- example, you need to adjust it to your table data
------------------------------------------------------------
AS

SELECT  [key_Konto] as 'Konto_KEY'
     ,[Typ]
     ,[Konto]
     ,[Konto_Text]
     ,[Konto_Parent]
     ,[Konto] + ' ' + [Typ] + ' ' + [Konto_Parent] AS 'Konto_with_parent'
     ,[Area]
     , COALESCE(NULLIF([konto_uniq],''), [KONTO]) AS [Konto_Uniq]
    -- ,[startDate]
    -- ,[endDate]
    -- ,[IsActive]
FROM [DBO].[KontoTable]
WHERE [IsActive] = 'Y'

 

 

More information:

https://blog.devart.com/null-vs-empty-values-in-sql-server.html

https://www.w3schools.com/sql/func_sqlserver_nullif.asp

SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable

https://bytescout.com/blog/coalesce-nullif-isnull-functions-in-sql.html
https://learn.microsoft.com/en-us/sql/t-sql/language-elements/coalesce-transact-sql?view=sql-server-ver17
https://www.w3schools.com/sql/func_sqlserver_coalesce.asp
https://www.w3schools.com/sql/sql_isnull.asp

The SQL Server ISNULL() function lets you return an alternative value when an expression is NULL:

SELECT ProductName, UnitPrice * (UnitsInStock + ISNULL(UnitsOnOrder, 0))
FROM Products;

or we can use the COALESCE() function, like this:

SELECT ProductName, UnitPrice * (UnitsInStock + COALESCE(UnitsOnOrder, 0))
FROM Products;

Product:
Microsoft Power BI Desktop

Issue:

Get error when create a path / Hierarki function in Power BI.

Try to follow this instructions:  https://youtu.be/iwRqSl-_zvU?si=W0BTbtLd071_EiKD

Solution:

Error like: Each value in ‘Hierarki'[Konto] must have the same value in ‘Hierarki'[Konto_Parent]. The value ‘10000’ has multiple values.

When Konto is the child column, and Konto_Parent is the parent column. The PATH() function requires a strict one-parent-per-child hierarchy.

The part of the table that you import into the Power BI table, to build a Hierarki on, need to only have the lowest item ‘10000’ once in the ‘Konto’ column.

In the creation of the table, you need to filter better so you only get ONE item on each row;

Hierarki =

FILTER (

    'ResultKonto',

    'ResultKonto'[Typ] = "Intern RR" && 'ResultKonto'[area] = "xxx"

        && NOT 'ResultKonto'[Konto_KEY] IN {233, 250, 251, 252}

)

The solution code depends on your data, but try to work with && ‘ResultKonto'[area] = “xxx”  to narrow the selection of data in your table.

 

Please also do not use hard coded KEY/ROWs in the selection, as this will be affected when the data is updated, and then maybe the wrong part is not included.

 

The value in the parent column “konto_parent” must exist in the child column “konto” – if it does not, you get a error like:

The value ‘xxx’ in ‘Hierarki'[Konto_Parent] must also exist in ‘Hierarki'[Konto]. Please add the missing data and try again.

 

More Information:

https://www.daxpatterns.com/parent-child-hierarchies/ 

https://dax.guide/path/ 

https://simplebiinsights.com/power-bi-path-function-for-parent-child-hierarchies-in-dax/ 

Product:

Microsoft Power BI desktop

Issue:

How add a custom column with two text strings together?

Solution:

There are more than one why to do this, in the Transform data, you can add code like this:

Period = Table.AddColumn( #"Renamed Columns", "År - Månad", each Number.ToText ( [Year]) & " - " & Number.ToText ( [Month] ))

 

Where the #”Renamed columns” is the name of the previus step in the transformation.
“År – Månad” is the new name of the new column.
As the column YEAR is a integer, we need to convert it to text before we can use the & to put several text/string fields together.
Number.ToText only work in Power Query M.

 

In the report table tool you can use the & ” – ” & to put together two columns into a new column, as shown above.

Period = 'Val av Period'[År] & " - " & FORMAT ('Val av Period'[Månadsnr], "0#" )

Use FORMAT to get it as two digits in the month part.

 

To get the 3 left character of month name in a column called Month name;

Month Short = UPPER ( LEFT ( ‘calender table’ [Month Name] , 3 )

 

To get leading zeros on month, use code like this:

Month Number  =  Table.AddColumn(#”Renamed Columns”, “Number to Text”, each  Number.ToText([Month] , “D2” ))

The “D2″ second parameter, tells that there should be two characters, and fill up with zero in result.

 

In Power Query, you can convert month column to show two digit numbers with;

Month Number  =  Text.PadStart(Text.From([Month]),2,”0″)

 

To convert a date column to only year and month use;

Period  =  Date.ToText([Date],”yyyy MMM”)

 

The CONCATENATE function joins two text values by directly appending the second string to the first, without any space or delimiter. Both input values must be of text data type. If numeric values are used, they will automatically be converted to text before concatenation.

New Column = CONCATENATE(“Hello”, “World”)  , can also be written as;

New Column = “Hello” & ” ” & “World” , to get a space between the words.

You can also write it similare to this:

New Column = CONCATENATE ( “Hello” , CONCATENATE  ( ” ” , “World” ) )

 

More Information:

https://lets-viz.com/blogs/dax-function-left/ 

https://blog.datumdiscovery.com/blog/read/extracting-text-made-easy-understanding-the-left-function-in-power-bi

https://lets-viz.com/blogs/dax-function-format/

https://lets-viz.com/blogs/dax-function-concatenate/ 

Microsoft Power BI with Desktop Training Course | Udemy

https://powerquery.how/number-totext/

https://datascientest.com/en/mastering-power-query-number-totext-a-comprehensive-tutorial-for-power-bi-users 

https://www.spguides.com/power-bi-convert-number-to-text/ 

Merge columns (Power Query) – Microsoft Support

https://www.fourmoo.com/2015/03/25/power-query-adding-leading-zero-to-number-eg-month-number/

https://www.notjustaprettydashboard.com/how-to-create-single-letter-month-day-name-columns-in-power-bi/

https://radacad.com/generate-year-month-day-combinations-in-power-bi-report-using-power-query-date-totext-function/ 

 

Product:

IBM Controller 11.1.1003

Issue:

When start Cognos Controller client after a upgrade – you get a error:

System.TypeinitialzationException… create a exception..
System.NullReferenceException…have not been found…
CCR.CCRApplicationsettings.cctor….

Solution:

Check that you start IBM Controller client and not IBM Cognos Controller client, the older version.

The new software should be installed to C:\Program Files\IBM\IBM Controller Local Client\

More information:

https://www.ibm.com/support/pages/ibm-controller-and-ibm-cognos-controller-builds-ccr-name-and-database-version 

Product:

Planning Analytics 2.0.9.19

TM1_version=TM1-AW64-ML-RTM-11.0.919.10-0
TM1_name=IBM Cognos TM1

Issue:

How export dim values to SQL?

Solution:

Create a TM1 TI process that have the dimension as a data source.  Set the variable name to account, and as string.  On the TM1 server create a ODBC connection to the SQL database.

Enter code similar to this:

#Section Prolog
sDimension = 'plan_chart_of_accounts' ;

sSource = 'OdbcDatabasename' ;
sClient = 'sql login user' ;
sPassword = 'sql login password' ;
sUseUnicodeODBC = 1 ;

ODBCOpenEx(sSource, sClient, sPassword, sUseUnicodeODBC) ;

#Section Metadata

#Section Data
sSQL = '';

CountofParent = ElParN( sDimension , Account);
ElementLevel = ElLev( sDimension , Account);
ParentCounter = 0;

WHILE (ParentCounter <= CountofParent);
ParentElement = ElPar( sDimension, Account ,ParentCounter);

sSQL = Expand('INSERT INTO dbo.AccountTable (Account, parentelement, countofparent, elementlevel) VALUES (''%Account%'',''%ParentElement%'',''%CountofParent%'', ''%ElementLevel%'')');

ODBCOutPut( sSource , sSQL );
ASCIIOutput( 'd:\temp\debug.txt', Account, ParentElement , NumberToString( CountofParent ) , NumberToString( ElementLevel ) );

ParentCounter = ParentCounter+1;
END;

#Section Epilog


 

You need to adjust the TM1 code to be working for you.

 

More Information:

https://itlink.com.sg/wp-content/uploads/2023/07/TA2019005-Extracting-TM1-Dimension-Hierarchy-using-TMVGate.pdf 

https://github.com/cubewise-code/bedrock 

https://cubewise.com/blog/mastering-hierarchies-in-ibm-tm1-and-planning-analytics/ 

https://everanalytics.wordpress.com/2015/12/02/closer-look-at-the-dimensionsortorder-function-in-cognos-tm1/ 

https://exploringtm1.com/unwinding-removing-the-structure-from-a-dimension/

https://lodestarsolutions.com/level-0-not-leaf-planning-analytics-tm1-set-editor/ 

https://cubewise.com/functions-library/tm1-function-for-rules-ellev/ 

https://cubewise.com/functions-library/tm1-function-for-ti-odbcopenex/ 

https://quebit.com/askquebit/how-to-speed-up-tm1-odbc-output/ 

https://jpbi.blogspot.com/2007/05/sql-trick-for-flattening-parent-child.html 

https://www.ibm.com/support/pages/ibm-planning-analytics-20-fix-lists 

Product:

Microsoft Azure
Dataflow in Workspace

Issue:

The dataflow update have failed, and you get a message like “Error: We encountered an error while performing the refresh. Please try again. If the issue persists contact Support”

Solution:

Please try to refresh the dataflow again.

It looks like when you use the “free” or “pro” license for the workspace, the resource to update dataset or dataflow are shared by all the other users.

License limits:

More Information:

Power BI Pro is a paid license extending Free with collaboration and sharing features in the cloud, suitable for business users. It is intended for business users who need to share reports and collaborate within a team or across the organization.

Pro includes:

  • Publishing reports and dashboards to the Power BI service.
  • Sharing (as part of Power BI Service) content with other Pro users within your organization.
  • Organizing and managing content in team Workspaces.
  • Scheduling automatic data refreshes.
  • Schedule up to 8 automatic data refreshes for the datasets underpinning each report.
  • Create data models up to 1 GB per report, with a total storage capacity of 10 GB per user.

Price: $14 per user/month

It is worth noting that Power BI Pro is included in the Microsoft 365 E5 license, so no additional cost is required if you’re already covered by it.

https://www.microsoft.com/en-us/power-platform/products/power-bi/pricing

https://learn.microsoft.com/en-us/power-bi/consumer/end-user-license 

https://learn.microsoft.com/en-us/power-bi/collaborate-share/end-user-subscribe?tabs=creator 

https://antdata.eu/power-bi-license-and-subscription-types-what-to-choose/ 

https://www.metisbi.co.uk/blog/navigating-powerbi-and-fabric-licensing 

https://www.syskit.com/blog/power-bi-license-types/

https://www.ccslearningacademy.com/power-bi-pro-vs-premium/

https://www.phdata.io/blog/implementing-power-bi-premium-capacity/  

https://blog.coeo.com/power-bi-15-ways-to-share-data 

https://visualitics.it/power-bi-licensing-guide/?lang=en

Product:

Cognos Controller 11.1.1003.12
Microsoft Windows 2022 server

Issue:

How change from non-production to production in the header of the cognos controller client program?

Solution:

In later versions of Cognos Controller this is controlled from a file on the controller server.

Login to the cognos controller server as administrator.

Go to folder D:\Program Files\ibm\cognos\ccr_64\ControllerProxyServer

Open file web.config in notepad

Change from 0 to 1 at:

<add key="OptimizeDefineAccountQuery" value="true" />
<!-- Indicate Production or Non-Production, Levels: 0=Non-Production, 1=Production" -->
<add key="InstallerType" value="1" />
<add key="OptimizeJournalCopyQuery" value="false" />

Save the file.

 

Try again in Cognos Controller client.

You control if the users should see the database and user in the toolbar inside cognos controller from user settings:

Go to Maintain – User – Personal Defaults.

Select Layout tab.

Mark Display Data source and User ID.

Click OK.

 

More Information:

https://www.ibm.com/docs/en/controller/11.1.0?topic=defaults-define-personal-layout-2-tab#E1K11_3_PersonalDefaults-theLayout2Tab

 

Product:
Planning Analytics 2.1.10
Microsoft Windows 2022 server

Planning analytics for excel  ( IBM_PAfE_x86_2.0.100.3.xll )

Issue:

How do i work with a old TM1 perspective report in PAFE (PAX)?

Solution:

Create a common file share e.g \\server\pax\master  (where all users that should update xlsm files should have access)

To take a existing TM1 perspective websheet to work with it in pafe (pax) you need to convert it.

Open PAFE in excel.

Ensure that you have a open blank workbook in Excel.

Ensure that you have “trust access to the VBA project object model” set.

In IBM Planning Analytics ribbon in Excel click on Options.
Scroll down to “upgrade action buttons”

Click upgrade action buttons.

Fill in a local folder and click OK.

Select you TM1 server connection – and login.

Go down to the folder where you have your report you want to convert, select it and click upgrade.

This will change the report.

Click OK

Close Excel.

 

Start TM1 perspective.

Login to your TM1 instance.

Explore you websheet under applications.

Open your websheet into excel, by click on it.

Inside Excel, go to Save As, and save the fil in your folder \pax\master as a .xlsm file.

Name the file to same name as your report show in TM1 applications.

Close Excel.

 

Start PAFE in Excel again.

Go to file – open – and open the .xlsm file you have saved above.

Click on Connect button in the IBM Planning Analytics Ribbon.

Select you TM1 server and your TM1 instance to connect.

Now you should have the report in PAFE, and on the right side you have a workbook tab. Here you can expand “action buttons” and change the existing buttons in your old Tm1 Perspective report.

After you have done any changes in the spread sheet, save it to the shared folder or a temporary local folder.

Use Excel format settings to change the text size in buttons etc.

When you are done, click on the Publish icon.

Then select under what folder you want to store the websheet.

This websheet will be visible in both TM1WEB and PAW.

Exit Excel.

 

When you work with PAFE (PAX) reports, you need to start from a xlsm file you have stored yourself.

(There are other ways to work with websheet in PAFE, above is a suggestion).

 

More Information:

PAfE Reporting Hints – QueBIT

https://exploringtm1.com/how-to-upgrade-install-planning-analytics-for-excel-pax/ 

https://quebit.com/askquebit/ibm-planning-analytics-for-excel-quick-start/ 

https://exploringtm1.com/how-to-download-ibm-planning-analytics-for-excel-from-planning-analytics-workspace/ 

https://www.ibm.com/docs/en/planning-analytics/2.0.0?topic=tf-tm1-worksheet-functions-in-planning-analytics-microsoft-excel