Forum Discussion
noliverte
6 years agoHelper III
Total previous period dynamically
Hello, I have the following measure : Total Session LY all day = CALCULATE([Total Sessions-all];DATESBETWEEN(Calendrier[Calendar_Date];date(2019;01;01);date(2019;03;08))))) --> It works fi...
- 6 years ago
Thanks a lot it works fine, I jest adapt your code to fit to my problem.
Total Session LY all day = CALCULATE([Total Sessions-all];DATESBETWEEN(Calendrier[Calendar_Date];DATE(YEAR(TODAY())-1;1;1);DATE(YEAR(TODAY())-1;MONTH(TODAY());DAY(TODAY()-1))))Have a nice dayNoliverte
Greg_Deckler
6 years agoCommunity Champion
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