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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Microsoft Employee
Microsoft 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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