Exemple #1
0
        private static void Sample_Dataset_Rebind(PBIAPIClient pbic)
        {
            PBIGroup powerBIGroup = pbic.GetGroupByName("ApiClient Test");

            PBIReport  powerBIReport     = powerBIGroup.GetReportByName("Test Rebind");
            PBIDataset newPowerBIDataset = powerBIGroup.GetDatasetByName("AdventureWorksDW2016");

            powerBIReport.Rebind(newPowerBIDataset);
        }
Exemple #2
0
        private static void Test_Rebind(PBIAPIClient pbic)
        {
            PBIGroup myGroup = pbic.GetGroupByName("RebindAPI"); // "My Workspace"

            PBIReport srcReport = myGroup.GetReportByName("Report");

            PBIDataset targetDataset = myGroup.GetDatasetByName("Dataset1_Copy");

            //srcReport.Clone("Report_Cloned", myGroup, targetDataset);

            srcReport.Rebind(targetDataset);
        }
        private static void Test_Rebind(PBIAPIClient pbic)
        {
            PBIGroup myGroup = pbic; // "My Workspace"

            PBIReport srcReport = myGroup.GetReportByName("asdf");

            PBIDataset targetDataset = myGroup.GetDatasetByName("Adobe Analytics Traffic Analysis");

            srcReport.Clone("asdf2", myGroup, targetDataset);

            srcReport.Rebind(targetDataset);
        }