Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

MDX Calculated measures shows null value on facts that does not exist

Hi,

 

I am working with an Multidimensional OLAP Cube, and I have 3 calculated measures as follow:

 

CREATE MEMBER  CURRENTCUBE.[Measures].[Depense] AS

([Measures].[BUDGET],[DIM TYPE DEPENSE].[LIBELLE TYP MVT].&[Depense])



 CREATE MEMBER  CURRENTCUBE.[Measures].[Recette] AS

([Measures].[BUDGET],[DIM TYPE DEPENSE].[LIBELLE TYP MVT].&[Recette])


CREATE MEMBER  CURRENTCUBE.[Measures].[Effort] AS
1-([Recette]/[Depense])

For the last one i get as results all the years of the date dimension with null value as well as the right value for the related years.

 

Anyone can give me a hint or a way to eliminate the unwanted null value ?

 

Kind regards,

 

Mohammad

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

As this thread is more related to SQL Server Analysis Service, please post your question on relative forum so that you can get more professional advice.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.