Tooltip for column titles in matrix - powerbi

I want to add a description to titles of columns in a matrix (Image of matrix)
For instance, when I hover over France, I want to display Europe. When I hover over Canada, I want to display North America, and so on. In my data I have a column named continent. Using a tooltip, I managed to display the description over data in the matrix. For instance, when I hover over 8587, it displays Europe.
Is there a way that I can display a particular continent when I hover over the country?

Related

how to change y-axis labels and values based on matrix click power bi

I have this matrix created:
and I have a bar chart like this:
in my table I have a column called: account_website, account_whatsapp, account_self_service,account_mobile,account_chatbot
what i want is whenever someone clicks on the matrix, based on the row, displays the corresponding column.
ex: if someone pressed on whatsapp it will visualize the count of the account_whatsapp for the x axis and the names of the values on the y axis
I am fairly new to power bi, how can I do this ?

How to filter a Pie chart by selection in table

Please consider this scenario:
I have a table in Power-BI that's like this:
Country Total Sales
-----------------------------
USA 2000
Canada 1400
Spain 3200
And I want to have a Pie chart in page that if user clicks on every rows, The pie shows sales type for that Country. For Example:
How can I connect these to visuals together?
Thanks
If the two visuals shows data from the same data source, then they will be "connected" by default, i.e. when the user clicks on a row in the table, the pie chart will show only the data from the selected country, and if the user clicks on a sector from the chart, the table will show only the amounts for this category.
If you have a table in your data source like this:
Then add a table in the report with columns Country and Sales like this:
By default amounts will be aggregated as sum, so the table will show sum of Sales per Country. You can change the default summarization of the currently selected field in Modeling tab:
Add a pie chart with Category field in the legend and Sales field for value. Change the value to be shown as percentage from the grand total like this:
Adding Sales field as tooltip will also show the amount when pointing to a sector:
Now when you click on a row in the table, the pie chart will show only the relevant data:
For more information take a look at Change how visuals interact in a Power BI report and Filters and highlighting in Power BI reports articles.
Well, it does not work if the pie chart is top-N pie chart. I open a new issue to the Power BI community to fix it. Here is a description of the issue: Basically, I have a top-N pie chart created for states. But, when I select a city in a table and the city is not in one of those states, the pie chart is not updated to show the state of the selected city. Instead, it remains to show those top-N states with 0% in every slices. This is wrong. It should show the top-N states of the "selected" cities.

sorting stack bar chart in power BI

I am using a stacked bar chart for presenting the gender ratio in various region.
here the legend is gender and Axis is region and value is headcount.
when i want to sort the chart according to female gender value . the sorting is only done by the headcount value. how can i sort it for the percentage value. please help me.
EDIT: My first answer focused only on count, now I've taken into account that OP wants to sort by percentage female value
You can sort your data directly in your Stacked column chart visualization, after pivoting the data and adding a column showing the female percentage value using the Power Query Editor. If you insert the female ratio as a Tooltip, your chart can be sorted as that value even though it is not displayed in your chart.
Here are the details:
This data sample should fit your description:
Region,Gender,Count
USA,M,9000
USA,F,7000
EU,M,5000
EU,F,5000
UK,M,2000
UK,F,4000
CAN,M,100
CAN,F,900
If you enter that data using Edit Queries / the Power Query Editor, you can set it up like this:
Now highlight the Gender column, and select Transform > Pivot Column to get this:
Under Values Column, select Count and click OK to get this:
Now simpy add a custom column to calgulate the female ratio like so:
Now your table should look like this:
In the desktop, insert a stacked column chart and set it up like below. Notice that you'll need to insert F ratio under Tooltips:
Now you can sort your chart by Ascending or Descending F ratio

MSChart - Show series name on x Axis

I would like the chart shown below to show the series names (700HEN, ORG 700HEN etc.) under each column rotated 90 degrees not as a legend and I want to maintain the date label for each series group (it can be rotated or left horizontal). Is that possible?

Google charts -- different x-axis label and data label

I am using Google Charts to display some statistics. I'm using column chart. Each column has a label, which is a very long string. This label is displayed as x-axis label and also when I hover over the data column. What I would like to do is to keep this long label displayed when hovering over the column but display just ID on the x-axis. For instance:
ID | Name | Value
1 | Some long label | 3.0
I want the "ID" as x-axis label and "Name" to be displayed when hovering over the data column. "Value" is the actual data. Is it possible to do this? I wasn't able to find this in the Charts documentation.
I think you can use DataTable roles and in your case the tooltip role that is supported but the column chart.