PowerBI custom control to access data source - powerbi

I have a bar chart with x-axis showing years & y-axis having numerical value. When I right click the chart I want to edit the numerical value and save it in database. Upon refresh this chart shows latest value.
I had to create a custom bar chart, using power visual, that shows textbox but the value doesn't get stored in DB. Is it possible using direct query to do so, without power apps?

Related

How to disable the sorting axis option in Power BI line chart?

I have some data coming from a SQL Server query and the table looks as shown in the next figure:
If I display this in an Excel chart, it looks like the following picture:
As it can be noticed, in Excel the chart displays the data according to the order they have in the table.
When I tried to show this data in a Power BI line chart, it looks like the following picture:
Because the data is sorted by the occupancy values.
I do not want the data sorted as Power BI does. I want the data in the same way they are in the table. Any ideas about how can I do to disable the sorting axis option?
This should be rather simple.
Just click on the field that is currently used for the sorting, once you click it, the sort goes away completely.
See demo:
Sort actived:
Sort deactivated (clicking on Count of Status):

Dynamic column change in visual based on slicer in power BI

I have a chart as below,
Here I have certain metrics which needs to be shown as Monthly, quarterly, yearly.
Ex. if monthly is selcted chart should show in months as mentioned,
if quarterly is selected chart should show in quarter and same applies for yearly.
So I tried with following code,
Created a table,
|Monthly|1|
|Quarterly|2|
|Yearly|3|
Created the selcted value measure as
select = selectedvalue('table1'[column2])
Created a switch to use that calculated column in axis of the bar chart,
switch[select]
1,'calendar[Month]',
2,'calendar[Quarter]',
3,'calendar[year]')
Output is showing as variant data-type cannot be used in calcualted column,
I understand that some values are either text or number, how to change accordingly to same datatype.
I have tried with zero also it is showing the same error.
Is there any other approach to this dynamic changing of columns?
You can add buttons and use bookmarks to assign action based on Month, Quarter and Year to those buttons, all you need to do is create 3 visuals and align them then based on buttons make the visual visible/invisible and the update the bookmark.

How can you change bookmark selection through selected value from slicer? Is it possible?

Its known that we can dynamically change measures, dimensions and filters using selected value function, but is there any way that we can change bookmarks/graphs (bar chart to pie chart) on selection of slicer value. Say for example if ID = 1 then show pie chart if all selected show bar graph?
I don't think this is currently possible.
There are a number of related requests submitted to Power BI Ideas:
Conditional hide visuals based on value
Show/Hide Visualizations based on slicer value
Visual Hide and visual Show based on Selection Slicer
conditionally hide visual based on slicer
I recommend voting for these to improve their visibility and the likelihood that Microsoft will consider implementing them in the future.

Power BI power KPI Charts

I want to create a target and current amount of data in a power KPI chart. I have tried a lot but the lines are not shown properly in the chart. I have attached a screenshot of my chart.
I want to show the target and the current status separately via lines per month.
try using Gauge Visual it will give you both in this i am unable to understand your data can to please share what are the fields you are using and how
https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-radial-gauge-charts
above will show you how to use Gauge
Drag the line-chart from the visualizations pane and then add Date to axis then drop current and target values under the value field.
If not working then post sample data to work with.

Display value labels on multi-series google column charts

Is anyone know wether there is a way to display the values of a multi-series google column chart over each columns ?
Muhammad Tayyab Shei succeded in making it, but for a single-serie : see put labels on top of inside bar in google interactive bar chart
Since the annotation role is not supported for column charts yet, it cannot be done with a multi-column chart (the single-series version works by using a combo-chart which allows annotations for the line chart portion).
The easiest way to implement this would be to create a javascript function to either display the tooltips full time, or to draw custom tooltips and turn them on (using HTML-enabled Tooltips, for instance).