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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.