cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alienvolm
Helper III
Helper III

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 II
Super User II

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

2 REPLIES 2
d_gosbell
Super User II
Super User II

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

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.