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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Blank value in Dimension, doesn't exist in the source view

Hi all, I'm currently trying to make a few measures for my data model (for simplicity's sake, it's basically a fact table linked to a calendar via a foreign key).

 

However, a measure I'm making doesn't work, and returns this error :

NossairR_1-1639153138323.png

 

When I tried looking into why that may be, it seems that there are some blank values in a dimension : 

NossairR_0-1639153127622.png

 

But when I look up the source view for it, there doesn't seem to be any :

NossairR_2-1639153348859.png

I thought maybe there were some fact values that weren't linked to the dimension, but all foreign keys do exist in it  :

NossairR_3-1639153443248.png

When trying to reproduce the measure in PBI, I see that there is a blank value involved : 

NossairR_4-1639153510828.png

 

Is there any way to know how to fix it ? Here's what the measure looks like : 

MyMeasure:=
VAR chosen_date =
IF (
ISCROSSFILTERED ( '0-05 - Calendar' ),
LASTDATE ( '0-05 - Calendar'[Date - Civil] ),
TODAY ()
)
RETURN
CALCULATE (
SUM ( 'Fact'[Quantity] ),
filter(all(Fact),Fact[Prediction_Date]
= VALUE ( FORMAT ( EDATE ( chosen_date, -3 ), "YYYYMM" ) )&&
Fact[Month_In_Year] = VALUE ( FORMAT ( chosen_date, "YYYYMM" ) )
))

Thanks in advance,

Nossair

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I doubt you fact has some dates which are missing in the date/year table

 

 

refer

https://www.youtube.com/watch?v=23qemkDqMVY

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I doubt you fact has some dates which are missing in the date/year table

 

 

refer

https://www.youtube.com/watch?v=23qemkDqMVY

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

You're right ! I tried to simplify the model but I just realized that there was another fact table in my model that had a calendar foreign key that wasn't in the dimension. Thanks a lot !

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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