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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Alienvolm
Helper IV
Helper IV

Power BI Report builder | Matrix displays empty row on top with totals

Hi, 

 

I'm not sure if this is the right section of the forum, as I'm using the Report Builder from an existing report published in the Power BI service. 

 

In the original query in Power BI Desktop, my tables work just fine. However, in the Power BI report builder, I get an extra empty row for each level of the matrix with my total values as a value of the field. When I try to add functions to calculate the totals at the bottom of the table, my values are not correct because the formula picks up the values in those empty rows too. 

 

Screen Shot 2021-04-20 at 11.30.41 AM.png

 

In the example above, the first row has empty values for Tenant ID and Batch, and the values of the columns are really the totals. So, if I sum the fields values for "Onboarded" in the total row, I get 66, while the correct value should be 33. 

 

How do I exclude that first empty row? It's really confusing...  

 

Thanks in advance! 

 

~Alienvolm

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

If you've just copied the query from Power BI Desktop using something like the Peformance analyzer you will find that the query itself is calculating this extra row with the totals in it. This is because the query will include a rollup group. Power BI does this because measures are not always additive.

 

There a few ways to potentially fix this.

  1. you could simple add a filter in your report builder dataset to only include rows where the  IsGrandTotalRowTotal column equals False. (although the query would still be doing extra work to calculate these totals)
  2. You could edit the query manually to remove the rollup if you are familiar with those DAX functions
  3. You could try rebuilding the query using the query designer in Report Builder
  4. You could try using the Query Builder in DAX Studio https://daxstudio.org (which is a tool I developed) to re-build your query as this will generate a simpler query without the extra subtotals row

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Alienvolm .

 

I am having a similar issue, did you solve your problem?

As @d_gosbell has mentioned, removing rows from the query removes these empty rows, but on the other hand gives me problen when aggregating results (in particular my averages results).

Anyway, did you manage to make it work?

d_gosbell
Super User
Super User

If you've just copied the query from Power BI Desktop using something like the Peformance analyzer you will find that the query itself is calculating this extra row with the totals in it. This is because the query will include a rollup group. Power BI does this because measures are not always additive.

 

There a few ways to potentially fix this.

  1. you could simple add a filter in your report builder dataset to only include rows where the  IsGrandTotalRowTotal column equals False. (although the query would still be doing extra work to calculate these totals)
  2. You could edit the query manually to remove the rollup if you are familiar with those DAX functions
  3. You could try rebuilding the query using the query designer in Report Builder
  4. You could try using the Query Builder in DAX Studio https://daxstudio.org (which is a tool I developed) to re-build your query as this will generate a simpler query without the extra subtotals row

Hi, 
Thanks for the suggestions... 🙂 

I'm not very familiar with the report builder, so I'll try to work with DAX Studio instead. 🙂 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.