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! Learn more

Reply
ashmitp869
Post Partisan
Post Partisan

Need help for expression in paginated report when any parameters is Blank()

Hi All,

I am doing a paginated report, where I got a requirement that I don't select any month i.e MonthName is Blank() then it should calculate for the whole Year for the mentioned expression (Claim Qty, Claim Total)

 

I used the below expression for the Claim Qty which is giving me #Error. Please kindly with the expression .

 

 

=Sum(IIf(
    (Parameters!DateMonthName.Value(0) = "" Or IsNothing(Parameters!DateMonthName.Value(0)) ) And (Parameters!DateYear.Value(0) = Fields!Year.Value),
    Fields!BilledQuantity.Value,
    IIf(
        Parameters!DateMonthName.Value(0) <= Fields!MonthName.Value And Parameters!DateYear.Value(0) <= Fields!Year.Value,
        Fields!BilledQuantity.Value,
        Nothing
    )
))

 

 

 

@SamWiseOwl  @v-henryk-mstf   will you please help.

Thanks

2 REPLIES 2
SamWiseOwl
Super User
Super User

Hi @ashmitp869 

I am not that familiar with Power BI Paginated reports.

However a couple of points to make it easier for others:

  • What does the error message say?
  • Parameters!DateMonthName.Value(0) = "" sounds like you are testing a date against string

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi,

 

Parameters!DateMonthName.Value(0) is

ashmitp869_0-1723763792490.png

Here is my error. Not showing in details. the MonthName is passing Blank().

ashmitp869_2-1723763978113.png

 

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