skip to main content
Power BI
    • What is Power BI
    • Why Power BI
    • Customer stories
    • Data visuals
    • Security
    • Power BI Desktop
    • Power BI Pro
    • Power BI Premium
    • Power BI Mobile
    • Power BI Embedded
    • Power BI Report Server
  • Pricing
    • Azure + Power BI
    • Microsoft 365 + Power BI
    • Dynamics 365 + Power BI
      • Energy
      • Healthcare
      • Manufacturing
      • Media
      • Retail
    • For analysts
    • For IT
      • Overview
      • Embedded analytics
      • Power BI visuals
      • Automation
      • Documentation
      • Community
    • Partners Overview
    • Solutions Partners
    • BI Specialized Partners
    • Power BI CSOs
    • Fabric Partner Community
    • Training
    • Getting started
      • Overview
      • Self-guided learning
      • Webinars
      • Documentation
      • Roadmap
      • Overview
      • Issues
      • Give feedback
    • Blog
    • Business intelligence topics
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Events
    • User groups
    • Community blog
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power BI forums
    • Updates
    • News & Announcements
    • Get Help with Power BI
    • Desktop
    • Service
    • Report Server
    • Power Query
    • Mobile Apps
    • Developer
    • DAX Commands and Tips
    • Custom Visuals Development Discussion
    • Health and Life Sciences
    • Power BI Spanish forums
    • Translated Spanish Desktop
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Training and Consulting
    • Instructor Led Training
    • Galleries
    • Community Connections & How-To Videos
    • COVID-19 Data Stories Gallery
    • Themes Gallery
    • Data Stories Gallery
    • R Script Showcase
    • Webinars and Video Gallery
    • Quick Measures Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Events
    • Ideas
    • Custom Visuals Ideas
    • Issues
    • Issues
    • Events
    • Upcoming Events
    • Community Engagement
    • T-Shirt Design Challenge 2023
    • Community Blog
    • Power BI Community Blog
    • Custom Visuals Community Blog
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 

    Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

    • Power BI forums
    • Galleries
    • Data Stories Gallery
    • Readership in Seattle by Decisive Data

    Readership in Seattle by Decisive Data

    08-02-2017 15:11 PM

    jolsby
    Advocate IV
    56044 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    jolsby
    jolsby Advocate IV
    Advocate IV
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    Readership in Seattle by Decisive Data

    ‎08-02-2017 03:11 PM

    The Challenge

    Getting access to the data that matters to you, when you need it, can be of the upmost importance. There can be information that is too crucial to not have on-the-fly access. Power BI gives you the capability of retrieving mission critical information, at your finger-tips, with DirectQuery.

     

    My goal is to demonstrate the Power within Power BI via:

    • A multi-million row dataset, demonstrated in a simple, infographic design.
    • An interactive and live connection to a hosted SQL Server data solution, utilizing book checkout activity within the King County Library System.
    • Power BI and Backend SQL Optimization techniques to improve performance for these kinds of analytics implementations.

     

     

    The Solution

    Visual Concept

    I had the desire to make a non-parameter driven report, unlike my previous creation, which was built on pushing dynamic parameters to new heights.

     

    Thus, the idea of building an interactive report inspired by modest infographics appealed to me. I leveraged KPIs and iconography to present all up trending for new book additions and book activity. The design is crafted by five primary genres, Fiction, Other, Fantasy, Nonfiction, Media and their respective subgenres.

     

    Selecting the Data

    The City of Seattle’s Open Data Program offers a wide range of interesting datasets. I decided to leverage the Checkouts by Title, which consists checkouts by title for all physical and digital items from 2005 to present. So, the raw data set is rather hefty with more than 25 million rows of data.

     

    Some Issues I encountered:

    • The most interesting field was the Subjects field, which had a comma delimited format. This meant that books which were associated with multiple subjects, were combined into a single string. This meant that when I first pulled in the data into Power BI there were over 200,000 distinct Subjects, which was far too granular for me to make any inferences on.
    • There were NULLs across the board, which meant that portions of the data didn’t provide the context I wished to derive.
    • The raw file was over 30GB, which meant that optimization was going to be of critical importance.
    • There was no value for net new books within the King County Library system, despite such a value being an interesting metric to observe.
    • The King County Library System offers much more than books for recorded checkouts. I needed to filter my data to only include audiobooks, books, and Ebooks to properly represent readership.

    Technical Solutions

    Here are some advanced capabilities within Power BI and SQL Server that I utilized:

     

    • Since the data had over 200,000 Subjects, I used SQL and logic to build my own, column friendly hierarchy. This new hierarchy would make the data much easier to slice in Power BI. I used a CTE and Union to separate my comma separated values in the Subjects field into rows, to give a row of data for every possible associated subject associated with a title. I then found the top 200 subjects within the entire dataset by keep the top 200 counted subjects. I then performed a CASE Statement to categorize the NewSubjects into any of the Top 200 categories ELSE bucket into a ‘Other’ category. The CASE statement captured around 80% of all possible NewSubjects for all 30GB of books as most books were associated with at least one of the top 200 categories. Having a single NewSubjects for each title got me much closer to the groupings I wanted. Then I grouped the NewSubjects into 19 Subgenres, which I then further grouped into 5 major Genres. The 5 Genres gave me the macro look I wanted. All of this development was performed in the SQL Server this data is connected to.
    • For performance, I used a columnstore index on my SQL table, to vastly improve queries on the dataset. It provided the speed to insight I needed for proper inference within Power BI. The column store index improved my query optimization substantially, with the SQL querying time decreasing by 4,200% after implementation, which certainly rolled into queries within Power BI.
    • This data is connected live to our SQL Server via DirectQuery, meaning I could build visualizations over this very large dataset, where it would otherwise be unfeasible to import all of the data with pre-aggregation. Moreover, the 1 GB dataset limitation does notapply to DirectQuery, making it the clear winner for this massive amount of data.
    • I leveraged CTEs again to find the MIN date of a title, and leveraged that logic to perform a LEFT JOIN on the table to flag Net New Titles so I could have a value of 1 ELSE 0 for new books.
    • I leveraged the histogram custom visual to find my two checkout distributions.
    • Lastly, you cannot naturally link images in Power BI, so I made hyperlinks to the Decisive Data website and social media by leveraging text links within the negative space of the images.

    Interesting Findings and Other Thoughts

    A great dashboard leads to interesting discoveries within the data. As a an avid reader I found facts that stood out to me, as well as some technical musings.

     

    • The most read genre within the King County Library System is Fiction, by a very large margin.
    • The most read book within the King County Library System between 2005 and 2016 is Gone Girl by Gillian Flynn.
    • Fantasy Novels have accelerated past the Other genre, this may be due to the popularity of Hollywood’s gravitation towards fantasy genres of all types in recent years, bolstering book checkouts as movie goers read the associated books. That is merely my own supposition.
    • E. L James’s Fifty Shades of Grey is the third most read book between 2005 and 2016.
    • 99% of all books are checked out less than 100 times in a given month.
    • Lastly, another approach to the hierarchy creation within SQL would be return to this dataset and leverage some form of Document Clustering analysis on the Subjects field in R or Python to for unsupervised clustering based on text frequency. I am pursuing Data Science, so this will likely be a subject I touch on in my spare time.

     

     

    What does readership look like for your favorite author?

     

    Jake Olsby

     

    Decisive_Data_Vector_Logo.png

    CoverPhoto-SeattleLibrary.png

    Key Interactive portions of visual.Key Interactive portions of visual.

    eyJrIjoiZTM3YTFkZDktYjc0OC00Yjk3LWJlZWYtMTY4YjU5NTRhMjI0IiwidCI6IjdlY2M4YWEwLTgzMGUtNGQ4Ni1hZjc4LTgzYTNkY2MyNjIzOCIsImMiOjZ9

    Preview file
    1085 KB
    Labels:
    • Labels:
    • Business
    • Education
    • Entertainment
    • How To
    • Other
    • Social Media
    • Technology
    Message 1 of 16
    56,044 Views
    59
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    Tome_05
    Tome_05 Helper II
    Helper II
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎08-29-2023 01:57 AM

    well done!


    I would appreciate it if you could share Pbix. My email address is soutome@spirals.co.jp


    thanks in advance

    Message 16 of 16
    777 Views
    0
    Reply
    sthevanh009
    sthevanh009
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-25-2023 07:01 PM

    Hello,

    Great work. Could you please share the pbix file?
    sthevanh@gmail.com 

    Message 15 of 16
    1,733 Views
    0
    Reply
    Demigan
    Demigan Advocate I
    Advocate I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎07-09-2022 02:26 AM

    Great job! A very interesting background, as well as a nice color palette.

    Message 14 of 16
    6,585 Views
    0
    Reply
    collipium
    collipium Advocate I
    Advocate I
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎07-05-2022 05:29 AM

    Hi, this is a great dashboard. How do you create the gradient background?

    Message 13 of 16
    6,705 Views
    0
    Reply
    technolog
    Super User technolog
    Super User
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎06-28-2022 05:20 AM

    There are error with data source in dashboard when it opens:(



    ____________
    Please join the Power BI UX/UI User Group if you need help with dashboard design and usability

    Join to Data Governance User Group

    Join to DENEB and Power BI Enthusiasts User Group

    Join to Data Fabric Best Practices User Group

    Subscribe to my medium blog
    Message 12 of 16
    6,863 Views
    0
    Reply
    Akay
    Akay
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎03-02-2022 08:02 AM

    Great Job! 

    would appreciate it if you could share the Pbix. file my email is ahmeddkamall@gmail.com


    Thanks in advance

    Message 11 of 16
    10,083 Views
    0
    Reply
    arpost
    arpost Helper V
    Helper V
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎08-17-2021 03:43 PM

    @jolsby, any chance this could be corrected so the report can be viewed? Every time I try to view this example I am unable to do so. Love showing this as an example of Power BI done well.

    Message 10 of 16
    15,102 Views
    1
    Reply
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎01-14-2020 02:06 AM

    you can put the .pbi file? to see the details please

    Message 8 of 16
    31,192 Views
    0
    Reply
    Anonymous
    Not applicable
    In response to Anonymous
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎02-06-2020 06:28 AM

    Wow, nice work! Possible to share it?

    Message 9 of 16
    30,275 Views
    0
    Reply
    Anonymous
    Not applicable
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎07-31-2019 11:23 PM

    Hi, this is a great dashboard. thanks for sharing. is it possible to get .pbix file?

    Message 7 of 16
    37,155 Views
    3
    Reply
    Rod
    Rod Advocate II
    Advocate II
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-22-2017 05:21 AM

    How do you create the gradient background?

    Message 4 of 16
    53,942 Views
    1
    Reply
    Anonymous
    Not applicable
    In response to Rod
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎04-19-2019 08:12 AM

    @Rod  he must have used an custom made image for background

    Message 6 of 16
    40,641 Views
    0
    Reply
    Anonymous
    Not applicable
    In response to Rod
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎06-29-2018 12:31 PM

    Hi Rod, did you get an answer on that?

    Message 5 of 16
    49,149 Views
    0
    Reply
    RafalK
    RafalK Advocate IV
    Advocate IV
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎10-04-2017 03:19 AM

    Great dashboard!

    How did you create this "smoothed line" in the line chart?

    Is this a custom visual?

    Rafał Kun
    Message 2 of 16
    54,686 Views
    0
    Reply
    hoffmanrat
    hoffmanrat
    Frequent Visitor
    In response to RafalK
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Report Inappropriate Content

    ‎11-20-2017 10:34 PM

    I can't say for sure but I have achieved a similar outcome by using the Sparkline custom visual available in the store. You can overlay this onto other visuals or it can stand up on it's own.

    Message 3 of 16
    53,974 Views
    0
    Reply

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Pages
    • Power Automate
    • Power Virtual Agents

    • Sign in
    • Sign up

    Browse

    • Solutions
    • Partners
    • Consulting Services

    Downloads

    • Power BI Desktop
    • Power BI Mobile
    • Power BI Report Server
    • See all downloads

    Learn

    • Guided learning
    • Documentation
    • Support
    • Community
    • Give feedback
    • Webinars
    • Developers
    • Blog
    • Newsletter

    © 2023 Microsoft

    Follow Power BI

    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks
    Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices