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

Unable to Group by Month on Pivot Tables.

Our take

If you're facing challenges with grouping dates by month in a pivot table, you're not alone. The issue often arises when exporting directly from Power Query to a pivot table, as this can lead to limitations in date formatting and grouping options. While exporting to a table first allows for seamless grouping, the direct approach may conflict with how Excel interprets date data, particularly when utilizing the data model.

I have a weird situation that I can't find a solution to online. If I export my Power Query* query into a table then make a pivot table out of that, the option to group by months automatically comes out. But if I export my query directly into pivot table, Excel won't let me group my dates into months - group field, group selection, all those don't work. Any idea why this is happening? It can't be the format cause query>table>pivot table works. The second pivot table is loaded into the data model.* Could this be the reason why?

*edited

Edit2: using DATEVALUE() on a Pivot Table date gives a #VALUE error. Is there any info how Pivot Table formats dates? Wrapping the date in a TEXT(,"m-dd-yyyy") fixes it.

The left indent on the right PT could be a clue but I don't know how to interpret that.

submitted by /u/monxstar
[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#Excel compatibility#Excel alternatives#rows.com#big data management in spreadsheets#generative AI for data analysis#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#Pivot Table#Power Query#group by months#Excel#dates#group field