I would love to know if possible and how i am select one date in one table to filter another table time between two date
for example : i select 15/2/2021 in one calender table and in another table(linked to data model) select time between 1/2/2021 - 15/2/2021.
Using this I can put metrics in the sample model: sales, buying, discount, etc.
and they will be calculated according to the selected dates
i would love to do this at At the yearly / monthly / weekly level
This calendar I use in my model
@Anonymous , For this case this table you are selecting date should be independent
"i select 15/2/2021 in one calender table and in another table(linked to data model) select time between 1/2/2021 - 15/2/2021"
MTD =var _max = maxx(allselected([IDate]), 'IDate'[Date])var _min = date(year(_max),month(_max),1)return calculate(sum('Table'[value]), filter('Table', 'Table'[Date] >= _min && 'Table'[Date] <=_max))
MTD is a better option
Proud to be a Super User!
@Anonymous , Not very clear. Create a date table and use time intelligence
Power BI — Year on Year with or Without Time Intelligence https://firstname.lastname@example.org/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38ahttps://www.youtube.com/watch?v=km41KfM_0uAPower BI — Qtr on Qtr with or Without Time Intelligence https://email@example.com/power-bi-qtd-questions-time-intelligence-2-5-d842063da839https://www.youtube.com/watch?v=8-TlVx7P0A0Power BI — Month on Month with or Without Time Intelligence https://firstname.lastname@example.org/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090ehttps://www.youtube.com/watch?v=6LUBbvcxtKAPower BI — Week on Week and WTD https://email@example.com/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123https://www.youtube.com/watch?v=pnAesWxYgJ8Day Intelligence - Last day, last non continous day https://firstname.lastname@example.org/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9
thanks for your answers
i need something for all the measures
i will not would to create for all the measures in my model MTD/YTD
Check out new user group experience and if you are a leader please create your group!
Check out how to claim yours today!
Test your skills now with the Cloud Skills Challenge.