1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Showing a row where no value exists

Our take

When working with pivot tables, displaying rows for categories without sales data can be challenging, especially when certain categories, like Consulting for New Zealand, are missing from the source data. To address this, consider creating a custom table with your product categories as row headings: Phone, Consulting, and Internet. You can then utilize XLOOKUP or SUMIF functions to accurately retrieve sales amounts from your pivot tables. This approach ensures that all categories are represented, providing a clearer picture of your sales landscape.

I have a list of 5 countries we sell products to. And we split it into 3 product categories: internet, consulting services, phone.

I have used power query to and loaded the connection into the data model, but not as a table within a worksheet.

These are my total sales amount pivot tables:

Filter: USA

phone | 500 mill

Consulting | 20 mill

Internet | 30 mill

Filter: New Zealand

Phone | 5 mill

Internet | 20 mill

Problem: I need New Zealand to show Consulting and a sales amount of 0.

There is no “consulting” row in the source data itself for New Zealand so “show zero values” in pivot table settings doesn’t work

I figure I’ll need to create my own tables listing: Phone, Consulting and Internet as row headings. But how should I get my sales sums?

I’m guessing doing xlookups using my pivot table is the data source is not best practice

Do I scrap my pivot tables and load the power query as a table for sumif?

submitted by /u/Interesting-System
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#Excel alternatives for data analysis#generative AI for data analysis#row zero#big data management in spreadsheets#conversational data analysis#real-time data collaboration#intelligent data visualization#data visualization tools#enterprise data management#big data performance#data analysis tools#data cleaning solutions#natural language processing for spreadsheets#rows.com#Excel compatibility#Excel alternatives