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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors