Transformasi dan Analisis Data dengan Microsoft Fabric
Luis Silva
Solution Architect - Data & AI


publisher dan genre.
publisher dan genre kini hanya muncul sekali.publisher dan genre di tabel Games lebih hemat ruang
Sistem transaksional OLTP
Tabel fakta



-- [dim_videogames]: Videogames table
-- [dim_genres]: Genres table
-- [dim_publishers]: Publishers table
SELECT game_id, title, gen.genre, pub.publisher
FROM dim_videogames_norm vidg
JOIN dim_genres gen
ON vidg.genre_id = gen.genre_id
JOIN dim_publishers pub
ON vidg.publisher_id = pub.publisher_id
# [videogamesDF]: Videogames DataFrame
# [genresDF]: Genres DataFrame
# [publishersDF]: Publishers DataFrame
videogames1DF = videogamesDF.join(genresDF, ["genre_id"])
videogamesdenormDF = videogames1DF.join(publishersDF, ["publisher_id"])
videogamesdenormDF.select("game_id", "title", "genre_id", "publisher_id").show()

Transformasi dan Analisis Data dengan Microsoft Fabric