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
Anonymous
Not applicable

DAX: Create new table by SUMMARIZE with ROLLUP returns duplicate rows

Hello,

I am summarizing budget and actual variance data for a backward looking financial table.

The raw data for each month has a number of accounts.

I want to summarize out the accounts and just get sums for the month.

 

But what's happening is I get the summary, then the data is repeated again in another set of rows but without a date column data.  Here is some sample data showing the problem:

jt1024_0-1602615214788.png

I'm still a bit new to DAX and modelling, with only a few weeks concentrated experience so I'm sure there's something simple I'm missing. Looking forward to see what the more knowledgeable people here might advise.

- Jim

 

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous

According to your description, I think that you only have to group by month in the summarize() function, you can try this measure:

Over variance CE By Month = SUMMARIZE(‘Overhead Variance CE’ ,

ROLLUP(‘WWI Fiscal Calendar’ [Month]),

“Actual by Month”, SUM(‘Overhead Variance CE’ [Actual]) ,

“Budget by Month”, SUM(‘Overhead Variance CE’ [Budget]) ,

“Budget Variance by Month”, SUM(‘Overhead Variance CE’ [Budget Variance])

)

 

And you can get what you want, like this(this table is created by data I imitated).

v-robertq-msft_0-1602661323157.png

 

 

If not, you can reply to me and post some sample data(without sensitive data).

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous

According to your description, I think that you only have to group by month in the summarize() function, you can try this measure:

Over variance CE By Month = SUMMARIZE(‘Overhead Variance CE’ ,

ROLLUP(‘WWI Fiscal Calendar’ [Month]),

“Actual by Month”, SUM(‘Overhead Variance CE’ [Actual]) ,

“Budget by Month”, SUM(‘Overhead Variance CE’ [Budget]) ,

“Budget Variance by Month”, SUM(‘Overhead Variance CE’ [Budget Variance])

)

 

And you can get what you want, like this(this table is created by data I imitated).

v-robertq-msft_0-1602661323157.png

 

 

If not, you can reply to me and post some sample data(without sensitive data).

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello Community Support Team _Robert Qin,

 

Thanks for your solution. Yes this solves the duplicate row issue.

 

One follow up question:

12 Months of data from 2019 10, to 2020 09 is shown simply as rows 1-12. What would I do to get the data in a date ordered list so that the table is not misleading?

 

Thanks so much again!

 

Hi,  @Anonymous 

You can create a table chart, then place the fields you wanted into a table chart, and click on the heading of the field you want to sort, like this:

 

v-robertq-msft_0-1602734565689.png

And you can get what you want.

 

Best Regards,

Community Support Team _Robert Qin

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.

Top Solution Authors