Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mmcanelly
Helper I
Helper I

Rolling up dates in Excel pivot from Power BI data

I've recently started using data sources from Power BI in Excel using the "Pivot from Power BI" feature. I have a date table in the Power BI data which I'm using as a row label in the pivot, and I'm trying to figure out how to roll up the dates to months and years. All of the Grouping features are grayed out, so I can't do it that way.

 

I know that some of the standard pivot features are limited when using Power BI data, and I'm wondering if this is one of them. Is there a way to roll date fields up to months/years in an Excel pivot when using Power BI data, or is the best way to handle this to just create a month and year column in the underlying table?

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

In the link it is a single table with columns for each date category such as Year, Month, Day and Date

 

You can then just drag in the year to get the data to aggregate by year.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @mmcanelly 

 

What you would need is a date table. You would then create a relationship from your main table to the date table joining on the Date

 

Here is a blog post on how to create the date table: Power BI Date or Calendar Table Best Method: DAX or Power Query? - RADACAD





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ ,

 

I do have the table set up as a date table (by using a continuous date range and setting the "Mark as date table" option), but I'm still not able to roll up the dates. In the link you posted, they have individual dimensions for year, month, etc. in the table. That was sort of my question -- is it required to have everything broken up at that level in the date table in order to allow users to pivot the data in Excel by year and month? Or is there a way to just provide a single date dimension where the user can decide which granularity of time period they want to roll up to (similar to how a standard pivot would work with Excel data).

Hi @Anonymous 

 

In the link it is a single table with columns for each date category such as Year, Month, Day and Date

 

You can then just drag in the year to get the data to aggregate by year.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.