예제 #1
0
        private static void Test_Export(PBIAPIClient pbic)
        {
            PBIGroup myGroup = pbic; // "My Workspace"

            PBIReport report = myGroup.GetReportByName("MyReport");

            report.Export("D:\\MyReport.pbix");
        }
예제 #2
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);
        }
예제 #3
0
        private static void Test_GetReports(PBIAPIClient pbic)
        {
            PBIGroup myGroup = pbic; // "My Workspace"
            //var x = pbic.Groups;
            //x.Count();
            PBIReport report = myGroup.GetReportByID("9ff0b4cd-2105-4405-857b-d51ffb06c14a");

            report.Export("D:\\Desktop\\MyReport.pdf");
        }
예제 #4
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);
        }
예제 #5
0
        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);
        }