How to get arrowhead in a flow map made using Power BI? - powerbi

I have a data of flow of a product (say electricity) between any two countries as shown below:
From To Value
Nepal India 2000
Nepal Bangladesh 500
India Bangladesh 1000
India Bhutan 200
Pakistan Afghanistan 50
India Sri Lanka 450
I'd like to plot this in a map in Power BI. I added the Flow Map add-in from Get Additional Visuals in Power BI. I used From column as Origin, To column as Destination, and Value column for both Width and Color. This is depicted in the screenshot below:
As a result, I get a nice looking map as shown below:
There is a bubble (circle-shaped) in the destination of each flow. Instead, I'd like to get an arrow head. I am not able to get arrow head using Flow Map. Is there any other visual where I can get the arrow head in the flow? The color and width of the line that represents the Value of the flow between any two countries is also important to me.

Have a look at the authors github repo:
https://weiweicui.github.io/PowerBI-Flowmap/
In previous versions there have been arrowheads. Don't know why he removed them.

Related

How to forecast in Power BI using DAX

I have a chart in excel I wish to replicate in PBI.
My Excel chart is a bar chart dated axis with 2 series, running up march, but with data only up until now.
Each bar series has a trendline, which forecasts a trend up to the end of the financial year.
In power BI I have tried to replicate, but I cannot seem to add 'forecast' from the analytics tab unless my chart is a line graph.
So I now have 2 line series in a chart like so:
I have added trendline to both but there is no option to add the forecast line unless I only have 1 data series.
As I've removed a series I can now toggle on the forecast line in the analytics tab.
So I now have 1 line series in my line graph like so:
I actually need to have the data and the corresponding forecast for both data series, so I would have series 1 & 2 plotted like above, on the same graph together.
Is there a way to do this on the analytics tab??
If not, how should I go about it? I was thinking I could use DAX to forecast until March 2023 instead and then drag the line into the line graph and format it to dashed?
Thanks
Here is some sample data step by step for what i'm looking for (very simple thing to do in excel!):
This is the same data, pivoted with the 2 series mapped out on a line graph, and trendline added for each:
I just want to be able to show a trendline extending and forecasting forward, past the months I already have like I have done in Excel.
Yeah i think here your best solution would be to use the "what if" parameter in Dax to get the result you need
For a forecasting line to be performed on a line chart, Below requirements should be met. Otherwise You can't see this option on the analytics tab:
You need to change your datasets, and datatypes accordingly.
The last one is especially valid for you, because there is not a one-day period between your data values, in fact monthly organized.

Showing a visualization with Parent Child/Successor Predecessor relationship

I wanted suggestions from the community as to which chart should be used to depict the Parent-Child/Successor-Predecessor relationship in Power BI. I'm using Azure boards as a data source. Here is my sample data source.
I want to show each work item id in the center and its Predecessor on the top left and successor on the bottom right. With that, I want to arrange my items based on iteration.
Here is how I'm trying to visualize my data.
I don't need links to the Microsoft Custom Visuals Page. I know that it exists. I'm expecting somebody to point out to a visual in the market place that could help me with my scenario.
Not sure if there any exact option for data presentation as per your design/requirement or not. But to serve the purpose, you can try with "Multi-row card" and the presentation will be something like below-
You can apply some Styling in the visual, but it will not like your sample requirement I guess :(
Here 2 column is basically 2 different "Multi-row card" visual.
In first visual, applied filter with Iteration = 1
In second visual, applied filter with Iteration = 2
For better presentation purpose, I replaced NULL value with a "-" in column "Predecessos ID" & "Source ID Title"

Power BI Desktop - Map Visualization Problem (not showing all locations)

In an excel sheet I have several countries listed for different job ID (ex: USA, Canada, UK, UAE, etc). However, once I load the data into power BI and select the map visualization, only one country is listed on the map. How do I get all countries from the spreadsheet be labelled on the map?
Maps are a big problem in Power BI.
You should add latitude and longitude columns for every country into your country table.
There are some map specific issue in Power BI which basically belongs to the Map Provider, not a Power BI Issue. For example, in ArcGIS map you have to provide value "United States of America" instead of "USA". Other wise the map will not going to detect that country appropriately.
For your example cases you mentioned USA, Canada, UK, UAE. Here in most case I guess it is related to the country name. Please try with providing full name of countries. You can aslo search Map wise supported country name from their documentation.

PowerBI Drill Down from USA State to Counties

I have this Pbix file: https://www.dropbox.com/s/grdscnv974gzqa6/Case8.pbix?dl=0
which shows All countries and their airports with a Drill down to the country feature.
I am trying to:
1. Show Only USA map with All States
2. When you drill down (click on state map it shows all counties).
How to hide all other countries. How to drill down.
This is how my current map looks like
This is how the drill-down should look like when you click on the State
It is not possible to drill down from high level shape map to a lower one using the default shape map or filled map, but you can zoom into selected areas.
You will need to have a hierarchy/table of State to County.
I've used the shape map found here, there will be better topoJson files out there with your needs, maybe this one.
Also created is a table with an entry for County, and two county names, Clay & Oldham. I've loaded the shape map into the visual. As you can see there are a number of county named the same, this is a limitation of the shape map and data used in this example.
This gives a map of the USA, and it will zoom into the selected areas. You'll need to change the default auto-zoom setting in the map to allow it to do this
You'll need to change the default auto-zoom setting in the map to allow it to do this

How to deal with missing dates in Power BI line charts? (Tabular SSAS)

In SSAS Tabular mode, we have different tables with slowly changing dimensions (SCD Type 2). In Power BI, we now want to show for example the price history for one object over time. I want to display that with a Line Chart.
For the sample data, I added a Line Chart and activated the "Stepped" property in "Shapes", to have a clear cut of the price change. But unfortunately, Power BI displays the price change on Oct 5th (because this is the middle date between 3th and 7th) instead of Oct 7th. I know, that I would be able to solve it on database view layer, but I don't want to create so much data records for all different tables.
PRICE TABLE
**************************************
Price Valid from Valid To
**************************************
3'674 02.10.2019 02.10.2019
3'674 03.10.2019 06.10.2019
11'095 07.10.2019 07.10.2019
11'095 08.10.2019 01.01.2999
**************************************
Is there any way to prevent this behavior in the Power BI visualization or can I somehow calculate the missing dates in DAX?
I would have use date field from date dimension which has all the continuous date, then you may change your axis type for date continuous and it will generate smooth transition.