Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I know it's best practice to avoid multiple levels of lookup tables. However, how is this generally done in practice? I have abbreviated city names coming from the fact table, some of which get consolidate (Baltimore into Washington, D.C., for example). I also want to sort these in situations where I don't want the fields in alpha order. Please see below:
Any way of doing this without creating two tables?
Thanks!
Solved! Go to Solution.
Hi @jl20
You can create a Sort calculated column in your FACT table if you want to avoid the extra table and then use this as your sort col for your main table
Sort = SWITCH( TRUE() , -- IF/THEN --- 'Table'[Office] = "Atlanta" , 1 , 'Table'[Office]= "Chicago" , 2 , 'Table'[Office] = "Cleveland" , 3 ,
-- ELSE -- 999 )
Hi @jl20
You can create a Sort calculated column in your FACT table if you want to avoid the extra table and then use this as your sort col for your main table
Sort = SWITCH( TRUE() , -- IF/THEN --- 'Table'[Office] = "Atlanta" , 1 , 'Table'[Office]= "Chicago" , 2 , 'Table'[Office] = "Cleveland" , 3 ,
-- ELSE -- 999 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |