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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
prathyoo
Helper III
Helper III

Paginated Report Multivalue Parameter and DAX to include (Blank)

We are developing a paginated report that connects to a Power BI dataset and we wish to incorporate a multivalue filter on a column that includes null values. In the Power BI interactive reports we can filter the reports to include or exclude the null values -

prathyoo_0-1633424965318.png

 

This is automatic as Power BI realizes the existence of null and provides an option called (Blank). Now, we tried to display the above drop down in Paginated Reports and initially, it would not show the (Blank) or Null option. So, we had to write a DAX to include a an option "Blank" as a string literal -

prathyoo_1-1633425197358.png

 

prathyoo_2-1633425496523.png

 

But, now we are stuck at how to translate the above multivalue pick by end user into a DAX filter. We need to somehow trnaslate the "Blank" option to a Blank() filter when the user has checked this option.

 

Currently we use SUMMARIZECOLUMNS with the below filter -

FILTER
(
VALUES('DIM:Claim Header'[Incident Type]),

PATHCONTAINS(
@IncidentType,'DIM:Claim Header'[Incident Type])
)

 

But, we are struggling to figure out how we can change the filter to include retrieving data with no value in Incident Type when the user also ticks "Blank" in the dropdown.

1 ACCEPTED SOLUTION
prathyoo
Helper III
Helper III

We have fixed the this with the following filter clause -

 

  FILTER (
                VALUES ( 'DIM:Claim Header'[Incident Type] ),
                PATHCONTAINS ( @IncidentType, 'DIM:Claim Header'[Incident Type] )||IF(FIND("Blank",@IncidentType),ISBLANK('DIM:Claim Header'[Incident Type]))
            )

 

We added an OR clause to include the ISBLANK filter in case the value "Blank" is included in the Paginated Report parameter.

View solution in original post

1 REPLY 1
prathyoo
Helper III
Helper III

We have fixed the this with the following filter clause -

 

  FILTER (
                VALUES ( 'DIM:Claim Header'[Incident Type] ),
                PATHCONTAINS ( @IncidentType, 'DIM:Claim Header'[Incident Type] )||IF(FIND("Blank",@IncidentType),ISBLANK('DIM:Claim Header'[Incident Type]))
            )

 

We added an OR clause to include the ISBLANK filter in case the value "Blank" is included in the Paginated Report parameter.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors