Quantcast
Channel: All Developer posts
Viewing all 48064 articles
Browse latest View live

Re: Using cmdlets to change SSAS connection in report


Re: Images not loading in Chiclet slicers

$
0
0

Are the images that you try to view in the slicer public avalaible on the internet? 

Re: How to Create Date Parameters in Direct query

Re: Custom Visual Selection

$
0
0

hi   it is really only need downgrade to 2.5

 

pbiviz --version 3.1.5 for me

Re: matrix selection error on other visual

Custom visual selection: values in the selector are reset

$
0
0

Hi power bi community,

 

By following the tutorial for creation of barChart (https://github.com/microsoft/PowerBI-visuals-sampleBarChart), I have created two selectors A and B. If I filter the data only by selector "A", everything works good. But if click on value at selector "A" and then I select value at the selector "B", the selection in the filter "A" is reset (the array with the id of the selected elements becomes empty).

What could be the problem? 

Re: Connecting Power BI to a Web Service

$
0
0

Thank you for the guidance to connect, that was helpful. Any suggestions on how to pull more than 50 rows at a time?

Vertical Chart Line

$
0
0

Hello guys, i need to mimic this chart below in Power Bi, I was looking but i didnt find any chart like this, any idea ?

 

grafico_pb.png


multi selection with AND operator

$
0
0

hi community

 

I have 2 selectionId,

1. select the city with value "Malang"

2. select the month with value "3"

 

this is the my code 

 

                let list : ISelectionId[] = [];
                list.push(this.model.dataPoints[0].selectionId); // city == Malang
                list.push(this.model.dataPoints[index].selectionId); // month == 3

                // console.log('sebelum', this.model.dataPoints[index].selectionId);
                // let includes = this.model.dataPoints[index].selectionId.includes(this.model.dataPoints[0].selectionId);
                // console.log('includes', includes);
                // console.log('hasil includes', this.model.dataPoints[index].selectionId);

                // ISQExpr.and

                selectionManager.select(list, true).then((ids: ISelectionId[]) => {
                    console.log('hasilnya', ids);
                });

 

but the result are "select all city with month == 3 or city == Malang"

 

how to make multiple selectionId with and operator?

the expected result only show month == 3 && city == Malang

setFilter with "Require Single Selection" property using javascript api

$
0
0

Is there any option to setFilter with "Require Single Selection" property using javascript api?

 

We have set "Require Single Selection" for few page level and report level filters in powerbi report but when we change the selected value in those filters through javascript api, that "Require Single Selection" option gets removed for few seconds(approx 7-10 sections) and then automatically applied.

 

I am not getting idea why is it behaving like this? I am not adding new filter. I am just getting existing filter and then setting the filter value in same filter object.

Re: multi selection with AND operator

$
0
0

Hi ,

I can't tell from your snippet how your selectionIds are generated, I believe you'll need to apply both columns to your ISelectionIdBuilder in order to generate one that intersects both categoricial values. 

Not sure if you've previously referred to this page, but it covers how you might chain the createSelectionId method with multiple values (for instance, .withCategory() and .withSeries()).

If you're not having much luck with this, perhaps you can share your capabilities.json and your view model mapping code? We can have a look and see if we can get a little further with it for you.

Regards,

Daniel

Re: multi selection with AND operator

$
0
0

hi  

 

I'm already solve this, the key is not how the manager to select but how the builder to create selectionId, right as your comment.

the hard way with matrix are how to create selectionId with row parents and columns parent.

 

this is my function with recursive children

if (x.values) {
                let keys = Object.keys(x.values);
                keys.forEach(k => {

                    let keyNum = Number(k);
                    let builder = host.createSelectionIdBuilder();

                    copyParents.forEach(p => {
                        builder.withMatrixNode(p, matrix.rows.levels);
                    });
                    let colRef = columnsRef[keyNum];
                    colRef.nodes.forEach(p => {
                        builder.withMatrixNode(p, matrix.columns.levels);
                    });


                    let _td: DataListSelection = {
                        value: x.values[k],
                        selectionId: builder.createSelectionId(),
                    }
                    listSelectionPerRow.push(_td);

                });
            }

About the synchronous slicer

$
0
0

hi all

 

I had a problem using the synchronous slicer. I created a button a slicer on the first report page, as shown below

 

one.png

 

My button is to jump to the second page after clicking, and the data selected in my slicer should follow to the second page

If I was switching pages on the Power BI Desktop, the data was synchronized, but if I clicked the button to jump to the second page, it would look like this

 

two.png

 

As in the picture, if I click the first page button to jump to the second page, then the options in my slicer are gone

 

Is there any solution to this problem? If there is, please tell me. thinks

 

best regards

alan-li

Power BI REST API & PowerShell Update Datasource

$
0
0

We have a lot of data sources (~200) and an IS enforced policy to change passwords every 45 days. The current process is for someone to go through these data sources and input the new credentials as and when they change. I want to be able to improve the efficiency of this process by creating a PowerShell script.

 

I'm using the officially supported Power BI PowerShell module but I'm having difficulty building the Windows version of the -Body for the Invoke-PowerBIRestMethod command. Specifically the encryption of the credentials, highlighted in red below;

 

{
  "credentialDetails": {
    "credentialType": "Windows",
    "credentials": "{\"credentialData\":[{\"name\":\"username\", \"value\":\"contoso\\john\"},{\"name\":\"password\", \"value\":\"*****\"}]}",
    "encryptedConnection": "Encrypted",
    "encryptionAlgorithm": "RSA-OAEP",
    "privacyLevel": "Organizational"
  }
}

MS have provided documentation on how to achieve this but its written in C#. Is there anyway to integrate this code into a PowerShell script or is there a way to encrypt the string with RSA-OAEP encryption natively in PowerShell?

combo box with dynamic value

$
0
0

Hi community

 

onyone ever make dynamic combo box with value from Columns/Values fields?

 

like in matrix visual, we can define background and foreground color from format panel

matrix-01.PNG

matrix-02.PNG

 

i see PowerKPIMatrix already do this, but when I read the code they only put the options at

VisualObjectInstanceEnumerationObject.container then the format panel make the combo box, but how?
 

container


Real time Charts

$
0
0

Hi all,

I have a personal datasource and i need to produce a charts with a real time data from that datasource. What options does PowerBI offer?

I've read, and tried, something about it, but it doesn't seem like there are many possibilities.

 

Thanks in advance for your support.

Re: pbiviz package Error

$
0
0

So I got an answer from Microsoft support team. We need to replace NodeListOf with HTMLCollectionOf in visual.ts.

Re: Persistent filters in Power BI Embeded

$
0
0

I have a similar question.

 

We use Power BI embedded in a solution.

 

Users that come to the reports always get the same filters and defaults. Because the Application is the 'user', each user that uses the embedded reports is not seen as a unique user by Power BI and so the persistent filtering capability is not used.

 

Is there any way to solution this? Should we use Active Directory to create an AD account for every user that signs up and then insure that user context is used when calling the reports? Can a user context be sent with each report request?

 

Many thanks for any ideas/tips.

Re: combo box with dynamic value

$
0
0

I can show the combo box now, and store the data in metadata columns, but the option show empty string

 

            let containerIdx = model.enumerationObject.containers.push({displayName})-1;

            model.enumerationObject.instances.push({
                containerIdx,
                objectName: model.objectName,
                properties: {
                    isMask: this.getValue<boolean>(currentColumn.objects, model.objectName, "isMask", false),
                    background: this.getValue<string>(currentColumn.objects, model.objectName, "background", "#FFFFFF")
                },
                selector: { metadata: currentColumn.queryName }
            });

matrix-03.PNG

 

this happen to with PowerKPIMatrix too, i thing something new with update and make the option did't show the text

How to visualize time series on a combo chart like

$
0
0
Hello all!

Back in the days I used to load filtered time series in Excel with powerquery and then do the visualization job with a combo chart (stacked areas + points + lines on the same graph).

I'm now moving to powerBI and I'm looking for a way to do the same because the combo chart is not available anymore.

I would like it to be interactive with zoom in and mouse over information (like built in graph in powerBI.)

So far, this is what I found that could do the job:

Edit a visual with R script and use ggplot2 and plotly packages.

How does it sound to you? Is there a better way to do it?

Thank you guys!
Viewing all 48064 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>