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 3 fact tables and 1 dimension table .
FCT1: Country | Sales Amount
FCT2: State | Sales Amount
FCT3: City | Sales Amount
DIM: Country | State | City
How do i join above 4 tables to create reports to drill through from COUNTRY to STATE to CITY.
Thanks
From the details you have given. How do you know which State and Country a City belongs to, or which State a Country is in?
Without that, you can't drill down.
Hi Dramus,
Country to STATE to city link is in dimension table.
for eg:
US KY LOUISVILLE
US KY LEXINGTON
US KY FRANKFORT
Thanks
So at the City level, how do you tell Boston US, from Boston UK?
DATA IN FACT TABLE IS LIKE THIS.
FCT1: COUNTRY | SALES AMT
FCT2: COUNTRY | STATE | SALES AMT
FCT3: STATE | CITY | SALES AMT
Hope it is clear now.
Thanks
Okay...So Assuming that the City table has the full key (City/State/Country).
Power BI can only handle single field keys, so you will need to create some composite keys. (e.g. State-Key = [Country] & "|" & [State]) on the FCT2 and FCT3 tables. You will also need to create a city-key (Country/State/City) on the DIK and FCT3 tables
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.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |