Power Bi calculations - powerbi

I am beginner with power BI and facing a little problem.
Actually I am working with a covid dataset. In one of the chart, I have to plot p-scores based on different age ranges over the years 2020-2022. When I put for example p-score of age range 15-65 on y axis, it gives me count of that where I just want to see the distribution of p-scores with no calculation.
Any solution would be highly appreciated. enter image description here

Related

Power Bi Dax - Department Goals & Totals Measures

I have ran into an issue that seems like it should be easy to solve but I am hitting a wall.
Here is an example of the matrix visual I am trying to create. The columns in green are good. The columns in red text are what I am struggling with. The yellow highlights represent the totals that are blank on my visual in power bi, as well as one calculating incorrectly due to the measure.
I also pasted the Food Goals table that I am working with. The issues seem to stem from the fact that I do not have an overall food goal % for the company, only by department. In the excel file, you can see what the ideal totals row would look like in the matrix, along with the formulas used in the spreadsheet to calculate.
Excel File Screenshot

The feature statistics under datasets in Google Vertex AI shows inconsistent results. Has anyone had a similar problem?

I created a dataset in Google Vertex AI that contains numerous features and after clicking on "Generate Statistics" inside the dataset, I can see some basic stats about each feature, and when I click on each feature a pie chart of % distribution of each value and a histogram show up.
Here is my question. For one of my numerical features, I have lots of zeros, specifically 652 zeros and my whole dataset contains 81K distinct values of that feature. The pie chart shows me that my dataset contains %83 percent zero values.
How is it possible? When I calculate the percentages I get that the dataset has only %0.80 percent zeros. (652/81K)*100=0.80%
Is it a reporting problem, a formatting problem? Has anyone had any issues with the stats in Vertex AI datasets?
Note: I don't have such problems with my other numerical features, I have the problem with only one feature containing a large number of zeros.

Hi, Is there a way to build a power BI bar chart using multiple heirarchies and avoid calculating averages of averages when drilling up?

I have a dataset with columns Country, State, City, Sales. I wanted to build a drill down bar chart to drill from country to State and then City, showing the average sales. My problem is that I can't find a workaround to avoid power bi calculating the average as the average of the inmediate lower heirarchy. Since I have States with much more cities than others, when I get to category Countries, the averages are wrong, because Two States with different amount of cities are weigthed the same way when summarizing to the upper level.
Is there any way to define the granularity level on which averages should be calculated or any other workaround.
Example
example dataset
For country A, I want to show the average as 16.
Currently is doing the average between States X and Y, whose averages are 17.2 and 13, giving 15.1 as a result.
Any help on how to solve this problem will be preciated. Thanks.
avgMeasure:= CALCULATE(AVERAGE(tbl[sales]),ALLEXCEPT(tbl,tbl[country]))

Is there a Power BI Map Visual that can do this?

The following is a screen shot from a Tableau report and I need to recreate this in PBI:
The map consists of two different data sets. The five square data points are latitude and longitude values based on a filter set. That's easy to reproduce. The 11 shaded areas represent 11 different zip code areas. For each of the 11 zip code areas, I need the area of the country represented by the zip code to be highlighted and shaded by a certain color gradient that is dependent upon a measure. For example, the orange shaded area is zip code 37122 near Nashville, TN.
Is anyone aware of PBI map visual that can do this? I've spent about two hours reviewing a few but no luck so far.
I discovered that a Filled Map visual in Power BI can do exactly this.

How to manage custom number formatting in power BI?

How can I do custom number formatting in a Power Bi visual?
I don't want to show all value as million. I want to put thousand for 1-day value, and million for 1-week value and year for 1-year value.
Power BI charts follow the principles of good data visualisation. That includes a scale that is relevant to the data with labels that relate to the scale.
In the visualisation, the differences for the values less than 1M are not discernible. The label with the 0M supports that approach, although it doesn't look great. But that happens when you have a chart with very large AND very small values. Power BI only supports one display unit and you selected Millions.
You may want to consider using a different visual for the data. Not all visuals to be shown as charts. If you want to show the exact numbers, then a simple table might be a better approach. In a sorted list of numbers, the digits in a number act very much like a horizontal bar.
Or split the chart in two and show one chart for values above 1M and another for values below 1M.
Or use Thousands as display units instead of Millions.