Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
Solved! Go to Solution.
Hi @bw_chec, assuming you have the following semantic model:
all unmatched rows in fact will be grouped under row "blank" in dimension.
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!
@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.
Hi @bw_chec, assuming you have the following semantic model:
all unmatched rows in fact will be grouped under row "blank" in dimension.
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |