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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bw_chec
Helper I
Helper I

Add 'Unknown' row to dimension tables

Hi,

 

I have a fact table with a service_id to dim_service. Some historic services are now no longer used, so are not in dim_service. I want to create a 'No longer used' row to group all of these rows in the fact when it joins to dim_service.

 

E.g. service_id in fact = 13, no service_id =13 in dim. I want this to be 'No longer used', but there are multiple service_id this applies to, so i want a 'catch all'.

 

If i add a row to the dim table with null service_id, will this catch all service_id that are not in dim_service?

 

Thanks,

BW

1 ACCEPTED SOLUTION
Sergii24
Super User
Super User

Hi @bw_chec, assuming you have the following semantic model:

Sergii24_1-1734514148308.png

 

all unmatched rows in fact will be grouped under row "blank" in dimension.

  • You don't need to add any blank row to dim table to obtain this result.
  • Depending on visual, measure(s) used and etc. you might need to forse its visibility, because by default blank row is hidden

Sergii24_0-1734514133017.png

If you want to gorup all unmatched values under a row with a name different from blank (like "no longer used") you'd need to add these rows to dim table (there are multiple ways to do it) and then group them together (i.e. having a row with ID 13 and a column with a value "no longer used". For existing values, depending on your use case you can group them by writing in a new column "exist" or referencing ID, so writing there value 12 and etc.)

Good luck with your project!

View solution in original post

2 REPLIES 2
Tahreem24
Super User
Super User

@bw_chec Please share the sample data example not the real data for both tables and expected output in order to understand your query and accordingly we could support you.

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Sergii24
Super User
Super User

Hi @bw_chec, assuming you have the following semantic model:

Sergii24_1-1734514148308.png

 

all unmatched rows in fact will be grouped under row "blank" in dimension.

  • You don't need to add any blank row to dim table to obtain this result.
  • Depending on visual, measure(s) used and etc. you might need to forse its visibility, because by default blank row is hidden

Sergii24_0-1734514133017.png

If you want to gorup all unmatched values under a row with a name different from blank (like "no longer used") you'd need to add these rows to dim table (there are multiple ways to do it) and then group them together (i.e. having a row with ID 13 and a column with a value "no longer used". For existing values, depending on your use case you can group them by writing in a new column "exist" or referencing ID, so writing there value 12 and etc.)

Good luck with your project!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors