Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
I have slicer for date range in PBI Desktop and would like to pass it to Paginated report using DAX.
Is there any example to achieve it?
Please advise. Thanks!
As a solution, I am passing start date and end date as separate parameters to Paginated report to make it work.
@abpgupta If it only contains two parameters, it will not break the length limit. Have you tried the method in the video? Does it work?
Yes, passing as separate parameters for start and end date in DAX works fine like other filters. I was looking way to pass something like in_range function used in Cognos.
I am trying to pass separate start and end dates, but it keeps asking for a relationship. How did you deal with this?
You can create DAX variable to define each of them to have selected values from parameters. Then in next variable use filter function to pass dates in filter context to get filtered results as table. This table, you can work to get final outputs.
Hi @abpgupta
I found a video (LEVEL UP Power BI Conditional Drill with Paginated reports! ) made by GuyInACube that introduces how to pass data from Power BI report to Paginated report with URL parameters. You could try this method.
In addition, how many date values are you going to pass? Because there is a length limit for URL (around 800 chars), it will probably hit the limit if it contains too many values. You could use CONCATENATEX function to combine multiple values you want to pass. There is a URL example containing a multiple-value parameter. You need to prefix the parameter name with rp: for Power BI to recognize it.
There are also some videos and blogs about passing data from Paginated report to Power BI report with URL parameters that may be helpful.
Link from a Power BI Paginated report to a Power BI report
Drillthrough from Paginated Report to Power BI
Kindly let me know if this helps.
Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |
| User | Count |
|---|---|
| 30 | |
| 29 | |
| 20 | |
| 15 | |
| 15 |