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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
KPRL
Frequent Visitor

Help with DAX to pass multiple selected values from PBI slicer to Paginated report URL

Hello,

 

I am trying to pass parameters value from report slicers to paginated report. I have followed the below link and aable to do so when I am selecting single value from slicer.

Integrating Power BI report with Paginated report | Cittabase 

However, I am not able to pass multiple selections to the url. Though it open the paginated report when clicking on the button but it again ask to select parameter value to generate the report.

I am using selectedvalue function which select single value and pass it to url . But not sure how I can pass multiple  values. 

 

Below is the example of measure calculation which I am using to open the paginated report.

 

Open Report =
var A= CONCATENATE("&rp:CombinedTableSALESCONSULTANT=",SELECTEDVALUE('Combined Table'[A]))
var B=CONCATENATE("&rp:CombinedTableIFAName=",SELECTEDVALUES('Combined Table'[B]) )
var C=Concatenate("&rp:CombinedTableITR=",SELECTEDVALUES('Combined Table'[C]))
Paginated_report_url&A&B&C

 

Can anyone please me help on this ?

 

Thanks!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @KPRL 
Please try

Open Report =
VAR Paginated_report_url = "https://app.powerbi.com/groups/6b9a-a02b--902af1f5b0ab/rdlreports/948275f3-9171-b2ce0a31e52f?ctid=f1..."
VAR A =
    CONCATENATE (
        "&rp:CombinedTableSALESCONSULTANT=",
        CONCATENATEX ( VALUES ( 'Combined Table'[A] ), 'Combined Table'[A], ", " )
    )
VAR B =
    CONCATENATE (
        "&rp:CombinedTableIFAName=",
        CONCATENATEX ( VALUES ( 'Combined Table'[B] ), 'Combined Table'[B], ", " )
    )
VAR C =
    CONCATENATE (
        "&rp:CombinedTableITR=",
        CONCATENATEX ( VALUES ( 'Combined Table'[C] ), 'Combined Table'[C], ", " )
    )
RETURN
    Paginated_report_url & A & B & C

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @KPRL 
Please try

Open Report =
VAR Paginated_report_url = "https://app.powerbi.com/groups/6b9a-a02b--902af1f5b0ab/rdlreports/948275f3-9171-b2ce0a31e52f?ctid=f1..."
VAR A =
    CONCATENATE (
        "&rp:CombinedTableSALESCONSULTANT=",
        CONCATENATEX ( VALUES ( 'Combined Table'[A] ), 'Combined Table'[A], ", " )
    )
VAR B =
    CONCATENATE (
        "&rp:CombinedTableIFAName=",
        CONCATENATEX ( VALUES ( 'Combined Table'[B] ), 'Combined Table'[B], ", " )
    )
VAR C =
    CONCATENATE (
        "&rp:CombinedTableITR=",
        CONCATENATEX ( VALUES ( 'Combined Table'[C] ), 'Combined Table'[C], ", " )
    )
RETURN
    Paginated_report_url & A & B & C
KPRL
Frequent Visitor

Hi @tamerj1 ,

 

Thanks very much . I modified the code that you suggested as below and it worked.  So, instead of "," used  "&rp:CombinedTableSALESCONSULTANT=". 

Open Report =
VAR Paginated_report_url = "https://app.powerbi.com/groups/6b9a-a02b--902af1f5b0ab/rdlreports/948275f3-9171-b2ce0a31e52f?ctid=f1..."
VAR A =
    CONCATENATE (
        "&rp:CombinedTableSALESCONSULTANT=",
        CONCATENATEX ( VALUES ( 'Combined Table'[A] ), 'Combined Table'[A], "&rp:CombinedTableSALESCONSULTANT=" )
    )
VAR B =
    CONCATENATE (
        "&rp:CombinedTableIFAName=",
        CONCATENATEX ( VALUES ( 'Combined Table'[B] ), 'Combined Table'[B], "&rp:CombinedTableIFAName=" )
    )
VAR C =
    CONCATENATE (
        "&rp:CombinedTableITR=",
        CONCATENATEX ( VALUES ( 'Combined Table'[C] ), 'Combined Table'[C], "&rp:CombinedTableITR=" )
    )
RETURN
    Paginated_report_url & A & B & C

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors