简体   繁体   中英

Filter and join multiple data sources in Paginated report Power BI

I have two different data sources in my Paginated report. One comes from Power BI Service and the other from Microsoft SQL Server .

My use-case is that, I send some parameters to the paginated report and filter the results in Power BI Service data source. Based on the information I get from the Power BI Service data source, I need to filter a view in Microsoft SQL Server . In the end, the information from these two data sources should be joined and used in the paginated report ( eg, in Power BI Service data source I have some non-personal information which needs to be enriched/joined with sensitive information from Microsoft SQL Server ).

Please note that I am working with big data here therefore the select to the view in Microsoft SQL Server should be as restrictive as possible.

One solution that I found was that, if two data sources come from Microsoft SQL Server, I can use subreports in paginated report and send information in XML format from one data source to the other - where I parse and enrich that XML information. However, since Power BI Service data source can only be queried using DAX or MDX, I don't know how to solve this issue.

If you have any hints or solutions that worked for you, please let me know:).

Example of data:

  • Microsoft SQL Server
ID Name Address PersonalNr MaritalStatus
1 Test Vienna, Austria 12345678 Married
2 Test1 München, Germany 87654321 Single
  • Power BI Service
ID Product Quantity Price
1 ProductA 12 12
1 ProductB 5 50
2 ProductA 1 1
  • Final results from joining
Name Address PersonalNr MaritalStatus Product Quantity Price
Test Vienna, Austria 12345678 Married ProductA 12 12
Test Vienna, Austria 12345678 Married ProductB 5 50
Test1 München, Germany 87654321 Single ProductA 1 1

To "join" across separate datasets in a Paginated report you can use the Lookup function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM