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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jhowe1
Helper III
Helper III

DAX remove grand total and total rows

Hi all,

 

I have a power bi query using a hierarchy, from performance analyzer that I want to use in paginated (SSRS). However using functions SUMMARIZECOLUMNS/ROLLUPADDISSUBTOTAL/ROLLUPGROUP I seem to be forced into having extra rows for grand total/subtotals, and my sums in paginated are double counting. How do I remove them from my query so they are filtered out before getting to paginated/ssrs? Thanks.

 

 

EVALUATE
SUMMARIZECOLUMNS (
    ROLLUPADDISSUBTOTAL (
        ROLLUPGROUP ( 'Sector'[Sector10kL1] ),
        "IsGrandTotalRowTotal",
        'Sector'[Sector10kL2],
        "IsSector10kL2Total",
        'Sector'[Sector10kL3],
        "IsSector10kL3Total",
        'Sector'[Sector10kL4],
        "IsSector10kL4Total",
        'Sector'[Sector10kL5],
        "IsSector10kL5Total"
    ),
    RSCustomDaxFilter(@PeriodPeriod,EqualToCondition,[Period].[Period],Int64), 
    RSCustomDaxFilter(@LegalEntityLegalEntityName,EqualToCondition,[LegalEntity].[LegalEntityName],String),
    "BookValue", 'AllMeasures'[BookValue]
)
ORDER BY ( Sector[Sector10kL1] )

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @jhowe1 ,

Could you please provide a screenshot of how the data is currently displayed in the paginated report currently? All of the data are from the table Sector? Before sharing, please mask the sensitive data. Is it possible to consider removing the grouping obtained using ROLLUPADDISSUBTOTAL & ROLLUPGROUP and refer the function in the document below to get the total values?

Add a total to a group or tablix in a paginated report (Report Builder)

SSRS Reports: Getting totals and subtotals of unique values from inside groups

yingyinr_0-1637744804087.png

Best Regards

amitchandak
Super User
Super User

@jhowe1 , can share column and final outpur you need.

I think you need to remove ROLLUPADDISSUBTOTAL

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I need to have some grouping within summarizecolumns as i'm using a hierarchy, if there is not a value at every level the row is hidden. It will not allow me to remove ROLLUPADDISSUBTOTAL and keep ROLLUPGROUP

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors