Forum Discussion
aquamagreen
3 years agoFrequent Visitor
Sales for Past Two Weeks?
Hi,
I have this table in my report but I need an option for looking at the previous two full weeks/fortnight (Mon-Sun).
Can anyone tell me if this is possible?
Date Periods =
UNION (
ADDCOLUMNS (DATESMTD ( 'ReportDates'[Date] ), "Type", "MTD", "Sort", 1),
ADDCOLUMNS (DATESQTD ( 'ReportDates'[Date] ), "Type", "QTD", "Sort", 2),
ADDCOLUMNS (DATESYTD ( 'ReportDates'[Date] ), "Type", "YTD", "Sort", 3),
ADDCOLUMNS (
PREVIOUSMONTH (DATESMTD ( 'ReportDates'[Date] )),
"Type", "Last Month",
"Sort", 4
),
ADDCOLUMNS (
PREVIOUSQUARTER (DATESQTD ( 'ReportDates'[Date] )),
"Type", "Last Qtr",
"Sort", 5
),
ADDCOLUMNS (
PREVIOUSYEAR (DATESYTD ( 'ReportDates'[Date] )),
"Type", "Last Year",
"Sort", 6
),
ADDCOLUMNS (
CALENDAR (MIN ( 'Fact'[Transaction Date] ), MAX ( ReportDates[Date] )),
"Type", "All Time",
"Sort", 7
),
ADDCOLUMNS (
CALENDAR (MIN ( 'ReportDates'[Date] ), MAX ( ReportDates[Date] )),
"Type", "Custom",
"Sort", 8
))
Thanks 🙂
Thanks 🙂
2 Replies
- Greg_DecklerCommunity Champion
aquamagreen You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008 - aquamagreenFrequent Visitor
It doesn't help for fortnight??