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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors