M: In libreoffice calc, I need to count all the non-blank values in a range; counta() isn’t working because, even though the contents are blank, there are filters and formulas that are registering as being an entry.

G: To count only non-blank visible cells in a range (excluding cells that appear blank due to formulas or filters), you can use an array formula combined with SUBTOTAL and LEN. Here's how:

  1. Assume your range is A1:A100.

  2. Use this formula:

    =SUMPRODUCT(SUBTOTAL(103,OFFSET(A1:A100,ROW(A1:A100)-MIN(ROW(A1:A100)),0,1)),LEN(A1:A100)>0)

Explanation:

How to Enter:

  1. Copy and paste the formula into the desired cell.
  2. Press Enter (no need for Ctrl+Shift+Enter in newer LibreOffice versions).

This method should bypass your issue with filters and formulas.

M: Will this work for text?

G: Yes, the formula will work for text values. Here's why:

It will exclude:

So, it effectively counts only the visible, non-blank cells, including those containing text.

M: If I wanted to practice power query, can you name some good sets of data that are easily accessible I could use to practice on

G: Here are some ideas for accessible and varied datasets you can use to practice Power Query:

Publicly Available Datasets:

  1. Kaggle

    • Website: https://www.kaggle.com
    • Offers a vast collection of datasets, ranging from beginner to advanced, on topics like sales, healthcare, and sports.
  2. Google Dataset Search

  3. Data.gov

    • Website: https://data.gov
    • Official U.S. government portal for open data, with datasets on demographics, environment, finance, and more.
  4. World Bank Open Data

  5. OpenStreetMap (OSM)

Simple, Everyday Data Sources:

  1. CSV Exports from Tools You Use

    • Export data from tools like Google Analytics, Spotify playlists, or workout trackers to clean and transform.
  2. Online Retailers

    • Many e-commerce sites allow you to download order histories or product lists as CSVs. Great for practicing joins, filtering, and aggregations.
  3. Wikipedia Tables

    • Find structured tables on Wikipedia (like country populations or sports stats). You can import these directly using Power Query's web connector.
  4. Movie Databases

    • Websites like IMDb or TMDb have APIs or CSVs for movie data. Example: Analyze box office trends or actor appearances.
  5. Supermarket Price Lists

    • Download or scrape grocery store product prices from online catalogs to practice pricing analysis or inventory management.

For Fun:

  1. Fantasy Sports Data

    • Use player stats, game results, or draft histories for data cleaning and transformation exercises.
  2. Board Game Data

  3. Music Charts

    • Use Billboard charts or Spotify playlist data to analyze trends in music popularity.

Miscellaneous:

  1. Stock Market Data

    • Download stock prices from Yahoo Finance or other financial sites. Great for time-series transformations.
  2. Weather Data

    • Websites like NOAA or WeatherAPI offer downloadable data for temperature, rainfall, and other variables.
  3. Survey Data

    • Use anonymized survey results from platforms like Kaggle or your own exported survey responses from tools like Google Forms.

Let me know if you'd like specific instructions for connecting any of these to Power Query!