Power BI Fiscal Year % Change - powerbi

I have a matrix with department and current and prior fiscal year totals. I'm may be overthinking it, but I can't figure out how to calculate the percent difference between the two years for each department in the matrix. Right now I only have FY2021 and FY2022 but we'll be adding more FY's in the future but will only display the top 2 FY's. Below is what the matrix currently looks like.

Related

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]))

Power BI Subtotals and Totals Wrong

I did not use DAX to create subtotals or totals.
I simply put a Matrix Visual on the design pane, confirmed the underlying data is correct, and row and column totals are wrong.
See image below:
Any suggestions?
Thank you
Figured this out
The monthly totals represent the values for each month of that year.
The row totals represent the values for the whole year.
Bingo

Get correct value in column sub total

In Power BI I am working with a matrix that shows a daily percentage.
When I add a column subtotal this sub total is summing up all the percentages for the selected days.
What I would like is that the Column sub total is showing the average percentage over the selected days.
Picture of the matrix
Thanks a lot for looking at my issue
Depends on how you calculate the percentage itself and on what granularity it exists in your data model, but you might want to play around with the ISFILTERED formula. Not sure what the name of the dimension ranging between 1 and 6 is in your graph, but let's call it day number. You can then do something like:
IF(ISFILTERED(day number), SUM(daily percentage), AVERAGE(daily percentage))
This checks if the daily percentage is filtered by the day number in the visual (matrix) or not. If it is, then it just takes the sum of the percentage (which is the percentage itself for any given day), otherwise it'll calculate the average percentage.

Clustered Column Chart bars get squashed when more than one year of data monthly data is included

When I have more than one year of monthly data in my Clustered Column chart my data bars get squashed and separated with the x axis type set to Continuous. Setting the x axis type to Categorical fixes the problem but I lose the Trend Line. The Trend Line is a must-have requirement from the end user so I can't leave it out.Desired Result but I need a Trend Line
This is what happens with the x axis set to Continuous:
When I reduce the amount of data to 12 months everything is ok - bars look good and I have a trend line - surely I should be able to display more that one year's worth of data?
This is what I want but I want to display more than one year's worth of monthly data
your suggestion seemed to work for the most part but my Month Year labels aren't lining up with the correct columns. For instance Jul 2019 should be directly under the right-most columns. Also, how can I get Month Year labels under every column not just every few.
Note that the Month Year labels seem to be shifted one column to the left

Subtotals in Power BI's waterfall chart

I'm visualizing a P&L statement, and want to add subtotals for the Total Revenue, Total Costs, Operational Income etc.
but I don't find an option to do so, which is readily available in Excels' waterfall chart.
You can either add a hierarchy to your dataset, for example on the axis you can have Year, Quarter, Month. If you drill up or down you will always get the values for this hierarchy level (Totals per Year -> totals per Quarter -> totals per Month). So a subtotal from the year level would be the Quarter view when you drill down.
Or you can add a measure to your dataset. Something like one of this two:
Count Orders = CountRows(GroupBy('YourTable';[OrderNumber]))
Sum Sales = Summarize('YourTable', [OrderNumber], "Sum Sales per Order", Sum([SalesValue]))
You can drag and drop now the measure into the tooltip section of your visual.