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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!