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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Paginated report Expression column sum() Grand Total

Hello Gurus,

I am working on a Paginated report where I have created a expression column, I need to show grand total of this expression column. Highlighted in Yellow. 


How to use following formula? 

Expression Formula : =Sum(IIf( (A - Sum(B)) >Sum(C),
                                                 Sum(C)
                                               , (A-Sum(B))
                                                 )
                                              )

 

Expression SUMExpression SUM

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi Abhi,

Didnt get the solution. Do you want us to create Sum column with Wizard and then replace formula with our own?

I meant that you need to use report Items here. For example the textbox that has your Sum(Total_D) normally has a name assigned by default, so give them a suitable name and then use the value of the textbox in your expression which is accessed using  eg ReportItems!TxtBoXname.value where TxtBoXName is the name of your Totals textbox.

AbhiSSRS
Solution Sage
Solution Sage

Hello! This works best when totals are accessed from textbox values in totals row. So you may give names to Totals row textboxes which contain your totals as per requirement and then put final formula in the required textbox as 

=Sum(IIf( (A - ReportItems!txtBtotal.value) >ReportItems!txtCtotal.value),
                                                 ReportItems!txtCtotal.value)
                                               , (A-ReportItems!txtBtotal.value))
                                                 )
                                              )

 

AbhiSSRS_0-1618558610724.png

AbhiSSRS_1-1618558760942.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.