How to adjust axis tick in power bi dashboard - powerbi

I'm building charts in power bi dashboard. One question is how to adjust x-axis tick. I'm plotting yearly data of 10 years. The tick appears every 5 years. I'd like them to display for each yearly data point. Thanks.

Related

Power BI Categories and Subcategories

I have 3 columns in Power BI - Main categories of Costs, and Subcategories of Costs and Values. I would like the preview to be in the same row, as shown in the second table.
This is the table I have.
Category
Subcategory
Values
Acqusition Costs
Brokerage Commissions
9000
Acqusition Costs
Other Commissions
3000
Maintenance Costs
Hardware Maintenance
5000
Maintenance Costs
Software Maintenance
5000
And this is the table I need to show in Power BI
Costs
Value
Acqusition Costs
12000
*Brokerage Commissions
*9000
*Other Commissions
*3000
Maintenance Costs
10000
*Hardware Maintenance
*5000
*Software Maintenance
*5000
Thank you in advance.
Are you trying to make a table? Or is this a visualization for a PowerBI a report?
You wouldn't make an actual table object in your PowerBI Model this way. Your first table can be abstracted upon by either DAX or the available PowerBI visuals to get the result you want.
For example, using your initial dataset in the model:
This can be abstracted with PowerBI's Matrix visual to get your desired output:
Notice how you can stack categorical columns within the 'Rows' visualization section. This provides the effect of a hierarchy between your categories.
Hope this helps.

AWS QuickSight Timeline Gantt

I have data in my DB of my residential history, with start date and end dates. and different countries I have lived in.
For tax purpose I am trying to plot a chart to determine how many days in a financial year I have spent in a particular country.
Is there a way I can plot my residential timeline on a graph ?
doesn’t need to be financial year, Even If I am Able to plot it based on Calendar Year, I will have something to build on top of.
I was trying to create a Gantt chart in AWS Quicksight too but there isn't a built-in Gantt visualization in AWS Quicksight.
However, I was able to build a Gantt chart using Plotly express.
https://plotly.com/python/gantt/
For your use case, you can probably plot your residential history as a Gantt chart using the code below
import plotly.express as px
import pandas as pd
df = pd.DataFrame([
dict(Country="USA", Start='2009-01-01', Finish='2009-02-28'),
dict(Country="Canada", Start='2009-03-05', Finish='2009-04-15'),
dict(Country="France", Start='2009-02-20', Finish='2009-05-30')
])
fig = px.timeline(df, x_start="Start", x_end="Finish", y="Country", color="Country")
fig.show()
Residential History

Filtering sales as per the top 10 customers in Power BI

I want to filter the monthly sales as per the top 10 customers' sales in power bi. Can any one help me with that DAX.
I suggest that you look at the RANKX function, I'm sure this will do what you need, have a look over at SQLBI I can't offer anything more specific as your request is pretty general. Post a more specific question if you run into trouble!

Power Bi timeseries correlation with events

I am actually working on a Power Bi timeseries visual, to show the changes of air-quality during the corona-crisis. To show the correlation, I want to display the corona time-frame. Is there any possibility to make this visual.
Thanks, Andreas

Can I make a report for the last hour only

I'm using Power BI (on the web) and I'll like to make a report showing the last hour only for a near-real time report. I can make a filter but the date/time is fixed and I want to show only the values of the last hour. Is that posible?
If you have a Stream Analytics query reading from Event Hubs and writing to Power BI you can use Q&A inside Power BI to filter to "in the last hour" as described here:
https://stackoverflow.com/a/32227774/5070440
Then after you are happy with your Q&A tile you can pin it.
You may need to set up periodic refresh of your data source as GregGalloway pointed out - however likely more frequently than once an hour if you need stats from the current past hour,
Would it be an option to edit the data import query?
Would it be an option to create the report using power BI desktop, applying filter in the "edit query" view, and then publishing it?
You can also use a tile level filter on the data you want to display on PBi to select values starting a given time. However this will only work on Reports not Dashboards in PBi.
Hope this helps!