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.
Hello,
I have been removing all future dates from my dashboards with the help of a future value column in the calendar table.
However I am struggling to remove future dates in the below case :
My inventory value stop in April 2020, but the average trailing twelve month continue, I want it to stop in April too.
0_Average_inventory_TTM =
VAR CALENDAR_YTD =
CALCULATETABLE(
'CALENDAR',
DATESINPERIOD('CALENDAR'[Date],LASTDATE('CALENDAR'[Date]),-1,YEAR),
'CALENDAR'[FutureDate] = "PAST"
)
VAR CALENDAR_MONTH_YTD =
SUMMARIZE(
CALENDAR_YTD,
'CALENDAR'[Year],
'CALENDAR'[Month],
"AMOUNT",
CALCULATE(
[1_AMOUNT_REVERSE_YTD],
'ACCOUNT FAMILY'[P&L] = "300",
'CALENDAR'[FutureDate] = "PAST"
)
)
RETURN
CALCULATE(
AVERAGEX(CALENDAR_MONTH_YTD,[AMOUNT]),
'CALENDAR'[FutureDate] = "PAST")
I tried to remove future date with the filter :
Solved! Go to Solution.
Hi @Seb_77
You can use relative date filtering. Add a the date field to the visual/page/report filter and filter as in the image below:
Proud to be a Super User!
Make sure both Inventory Value and Avg TTM is controlled. Or You use relative date calendar or page or visual level relative date filter to have data <= today
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Make sure both Inventory Value and Avg TTM is controlled. Or You use relative date calendar or page or visual level relative date filter to have data <= today
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Hi @Seb_77
You can use relative date filtering. Add a the date field to the visual/page/report filter and filter as in the image below:
Proud to be a Super User!
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |