Adding additional dimension attribute value in MDX query...

Depending on the requirements, sometimes it is necessary to do some categorizations which does not included in the dimension data. In such scenarios we may have to add a dimension attribute which currently does not exists with the dimension data.
We can do it in the MDX query as below.

WITH
 MEMBER [DimBranch].[Branch].[Dummy] AS
   '0',
   SOLVE_ORDER = 0
 SELECT
 {[Measures].[CONTRIBUTION USECASE]} ON COLUMNS,
 NON EMPTY Union(
   [DimBranch].[Branch].Members,
   {[Branch].[Dummy]}) ON ROWS
 FROM [Sales]


You can set the measure value based on the required logic.

How to run UPDATE/INSERT/DELETE Statements on Azure SQL Database in Microsoft Fabric Notebook...

You can run UPDATE/INSERT/DELETE Statements on Azure SQL Database in Microsoft Fabric Notebook using Python SQL Driver - pyodbc.  For the Fa...