Latitude, Longitude in SSAS - powerbi

How can I create data type Latitude and Longitude in SSAS?
I want Latitude, Longitude in live connection power BI, but in live connection, I can't change varchar to geography (Latitude, Longitude)!
I want Latitude, Longitude in live connection power BI, but in live connection, I can't change varchar to geography (Latitude, Longitude)!

Related

How to set location based in country name when latitude and longitude is 0 (null)

For example, I have some fields with 0 for latitude and longitude.
This happen because in the database, those columns are null (longitude and latitude is unknown).
How can I simply set the country name for latitude and longitude 0? (in this case, the blue point for latitude 0 and longitude 0 should be in the center of Brazil country, without any exact location).
Edit: the behavior for those columns with 0 for latitude and longitude should be the same when using the field location instead of latitude and longitude, like it:
You will need a table with countries and their center lat/long coordinates, and join in this table with your sample table to enrich your data where you now have nulls.

How to create time series visualisation in power BI

I'm new to Power BI online but trying to create a time-series chart with sum of sales by month, year and split by country. My result is:
What am I doing wrong?
With the Line chart visual selected put the Date hierarchy on the X-axis, Sales on the Y-axis and Country on the Legend field.

Need to create a Bucket using a Calculated Column - Power BI

Below is how my data looks
enter image description here
I need to create a Calculated ColumnF(Bucket) based on Date selection which I need to use in a Barchart (X- Axis)
For Example DateSelected = Jan1 & Jan2, Client = Client1 then Sessions should be = 11(1+10) and Bucket = 11 to 20
I am able to achieve this by creating Calculated Measure but not calculated Columns
enter image description here
Is there a dynamic way in Power BI that will update the column based on user selection

Slicer Only Show Month / Year and Filter On That

I have a table with a value ReportDate, which is in the format '03/01/2020'. I want to create a slicer in my Power BI report that displays only the format '03/2020' and the user can then select the value of the month and year to display, and it will display the data for that month (regardless of the day value). How would one go about doing this? I know technically I can add a new column in the database table, but unfortunately I do not have access to changes in the database and as such, would like a Power BI solution.
In the Power Query Editor create a new column with formula
Date.ToText([Date], "MM") & "/" & Date.ToText([Date], "yyyy")
Change [Date] to whatever your date column is called. Date.ToText converts a date time to text, which is then concatenated. You can then filter on that column. For issues like this it is best to have some sort of calendar table.
You can create a new column in using query editor in power bi:
mon_year = left(<column_name>, 3) & Right(<column_name>, 4)
Note: Make sure your are connected to dataset in import mode because in live connection you will not be able to create New Column in Power BI.

SAS - convert these UTM values to latitude and longitude

I have large no. of data which have below columns. I want to convert these UTM values to latitude and longitude but I have done UTM zone data.
Cust id, UTM Easting,UTM Northing
001,383737.26,6675682.46