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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ashmitp869
Post Partisan
Post Partisan

Help in expression to get the Total correct .

Hi ,Please assist with the correct expression to achieve my requirement. 

This is Paginated Report.

I have a calculation which does Project to Date Claim Total - Sum Billed Reveneue to get This Claim (Claim Total)

i,e $5742.85 - 5742.85 = ($0.01) which is correct.

Expression :

=Sum(IIf(Fields!BilledDate.Value >= Parameters!CalendarStartofMonth.Value AND Fields!BilledDate.Value <= Parameters!CalendarEndofMonth.Value, IIf(Fields!SumBilledRevenue.Value > 0, (Sum(IIf(Fields!PostedDate.Value <=Parameters!CalendarEndofMonth.Value  , 
    Fields!TotalCost.Value * 1.15, 
    0))) - (Fields!SumBilledRevenue.Value), 0), 0))

My requirement is sum  of Total show as 

 

ashmitp869_0-1726702728498.png

ashmitp869_1-1726702872622.png

How to get the TOTAL in the below as ($0.01) ?

 

Thanks

 

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @ashmitp869 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

This is Paginated Report .

here is link of sample.rdl file

https://github.com/suvechha/samplepbi/blob/main/sample.rdl

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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