In power bi, I have a table Customer in which I am keeping the Id, name and other details of customer. I have another table named Customer_CustomerRole_Mapping which contains CustomerId and its CustomerRoleId. I have another table name CustomerRoles which contains name and id of each role.
CustomerRoles and Customer_CustomerRole_Mapping are linked together.
In Power Bi, I want to show customers count role wise in a pie chart? I tried but I am unable to apply linkage between these tables. I am new to Power Bi.
Your Tables:
Customer
Role
CustomerInRole
The Table "Customer" is not necessary for your Report because you only need to know the count of rows in "CustomerInRole" per row in "Role". So just add a pie chart, use the name of the role in the axis (or legend) and the (distinct) count of Field "CustomerIDs" in "CustomerInRole"
That is all you need ;-)
please find table relation is one-way or two-way . if it is complex and you are going for two way then it will not show.
To have things clear I would add the role to your customer's table. There's no use in keeping things in a relational way when you start playing with BI.
This can easily be done in the query editor. On the home tab, click "Edit Queries"
And there you'll have to click "Merge queries", also on the home tab completely on the right.
In the upper table you select the CustomerID-column and Customer_CustomerRole_Mapping table, select the right ID for that table. After clicking "Ok" you can expand the new columns (by right clicking the merged query-column). You will have to repeat this step to add the roles to the Customer table, but in this second round you will have to work with selectint the roleId's.
After all this you can delete the columns that you don't need anymore from this table and just keep the role.
In the pie chart you then just add the role and select "Count".
It is handy to solve it like this when you have other Fact-tables, and you want to use Role as a Dimension.
You can be linking of tables in power bi desktop go dashboard and click on the third menu as showing in image Relation Management data table image whatever you want make relation with table just drag and drop to link within multiple and single tables with parent and child tables and if you want to delete this relation just go on relation arrow(line) do right click on line and delete it and save file.
Cheers.
Related
When changing the slicer from "All" to a specific selection, it changes both tables that are on the same page. I would like it to only filter through the top Data Description table.
Here are some screenshots to better describe what I'm referring to:
the first picture has the slicer on "All"
When choosing a selection, both tables are being filtered instead of just the top table.
Thanks for your help
You need to configure the interactions of the slicer and the other visuals on the page. To do that, select the slicer, then go to Format > Edit interactions. Now all visuals show with a few icons on the top right corner. Select what interaction you want.
For more detail see https://learn.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions
I am aware that an Azure Table has a composite key that is made up of a RowKey and PartitionKey. I am also aware that you can pull and Azure Table into PowerBI. I am new to PowerBI, so I am not sure if I am using the right term, but what I would like to be able to do is break my Azure Table into multiple tables in PowerBI based on the PartitionKey. Is this something that is possible? If so, can someone point me in the right direction?
Thanks
Import all your Azure Table data as one PowerQuery table. Then right click on the table in the PowerQuery editor and select Reference. This will give you a new table that points to the Azure Table data, call it "Partition Key Link" or "Partition Key Bridge". Remove all the row data columns. Right click on the partition key column header and select "Remove Duplicates". You now have a table of distinct Partition Keys. The go to your PowerBI model view. Create a relationship between the link table and the data from your Azure Table. You can then link your other data to the link table in order to get to a model that will work well in PowerBI.
I'm pretty new to Power BI.
I have a number of measures I've created in my Power BI app, data related to information requests that come to my team.
I've put these measures into a Bar Chart. I also have a table that lists details about these data requests. I want to be able to select an item in the Bar Graph and have the records in the Table to adjust to just those related to the selection.
I did this once by accident when i was fiddling around, now I can't figure out how i did it.
I also have a date filter set to affect all of my pages.
Any advice would be awesome.
Thanks in advance.
Jason
Try going to Model (highlighted in the screenshot, left side) and then Manage Relationships (highlighted as well). Then click on Autodetect. If Autodetect does not solve your problem, then you will have to create new relationships manually.
While working on Power BI, I have to show few columns from TABLE visual to specific set of users and hide for others.
So, till now I have created two ROLE in Power BI and added users but unfortunately, I am not able to hide and show TABLE Columns as per ROLE.
At this point - Column Level Security and Hiding Columns is not something one can achieve with Power BI.
Kindly see this Post on Power BI Ideas.
The Power Query Editor sorts the queries as they are loaded which can turn into a big mess.
How can one sort the queries alphabetically in the queries pane?
I don't know that you can sort them alphabetically, but you can manually rearrange their order by clicking and dragging as well as put them into groups to organize them better.
To create a new group, right-click in the pane and select New Group... then give it an appropriate name and drag the queries you want in that group into that folder. Note that this automatically creates an "Other Queries" group where all queries not in an assigned group live.