Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm sure I'm missing something simple. The business wants to be able to run reports "as of" dates within the fiscal year and compare to the previous year.
I have created slicers based on our Fiscal Date Table as our fiscal year doesn't run on a calendar year or have same start day year over year. The first slicer that requires an entry is Fiscal Year. The other slicers in order are: Fiscal Month, Fiscal Week of the Year and Fiscal Day of the week. Ideally they would not be able to enter Fiscal Year and then skip to fiscal day of the week, as I'm thinking processing speed would be crazy...and I'm not sure how to do this.
I basically was just trying to get the Fiscal Year selection sorted before I started the drill down into the other selected data from the other slicers.
I've created the following measures based on user selection:
- Current Year Value = SELECTEDVALUE('Fiscal Date table'[FiscalYear])
- Prior Year Value = MAX(Current Year Value) - 1
These measures appear to work as when I select 2018 - Current Year Value = 2018 and Prior Year Value = 2017 and so forth.
Now here is where I get stuck. I'd like to have 2 bar charts - 1 for current year and 1 for prior year.
1. Top 25 product sales by invoice qty where Invoiced Date = Current Year Value
2. Top 25 product sales by invoiced qty where invoiced date = Prior Year Value
I tried the following
Total Invoice Qty = SUM('Sales'[Invoice Qty]), YEAR('Sales'[Invoice Date]=[Current Year Value]
I get the error "A function 'Calculate' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
Below is a sample data set for item id 45346.
When I think about this in running a sql report I think "if fiscal year = x let current year = 'x' and prior year = x-1.
Again not sure how I'd get all the slicers into the mix.
Hi @Anonymous ,
Try this one.
Total Invoice Qty = CALCULATE ( SUM ( 'Sales'[Invoice Qty] ), FILTER ( 'Sales', YEAR ( 'Sales'[Invoice Date] ) = [Current Year Value] ) )
Ok that almost works.
Say I have a fiscal date table with following:
This maps all the calendar dates from 2010 - 2025 to company fiscal dates.
I've created another table: Year Table that only has one column and a listing of the years from 2010-2040. (Note: I did this because when I selected FiscalYear from the Fiscal Date table for the year slicer, I was unable to do the prior year calculations as the table was already filtered even if I did the 'Edit Interactions' on the visualizations.
I created a copy of CalendarDate to change the date format to match MaxInvoiceDt from the Sales table.
Then I merged my Sales table with the Fiscal Date table via MaxInvoiceDate and CalendarDate - Copy.
When I try to create the following:
- Dynamic Year =
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |