The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi guys!
Im using PREVIOUSDAY to return sales profit on my dashboard, but the date returning isn't the actual date.
For example, yesterday the date returned was 07-31-2022, but the real date was 08-10-2022.
Anybody know what im possibly doing wrong?
Solved! Go to Solution.
@Campolas , It takes the first day from the context on the calendar if not date is selected. so if page has date range of this month, then it gives the last date, last month
You can try
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Yesterday = CALCULATE([Net], FILTER('Date','Date'[Date] = Today()-1 ) )
Last Day = CALCULATE(sum('Table'[Qty]), dateadd('Date'[Date],-1, day))
Hi @Campolas ,
PREVIOUSDAY function will return a table that contains a column of all dates representing the day that is previous to the first date in the dates column, in the current context. Could you please provide the related formula of measure which involved PREVIOUSDAY function? And what's your final expected result? You can show some sample(fake) data(exclude sensitive data) to explain your requirement, later we can provide you a suitable solution. Thank you.
Best Regards
Hi @Campolas ,
PREVIOUSDAY function will return a table that contains a column of all dates representing the day that is previous to the first date in the dates column, in the current context. Could you please provide the related formula of measure which involved PREVIOUSDAY function? And what's your final expected result? You can show some sample(fake) data(exclude sensitive data) to explain your requirement, later we can provide you a suitable solution. Thank you.
Best Regards
@Campolas , It takes the first day from the context on the calendar if not date is selected. so if page has date range of this month, then it gives the last date, last month
You can try
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Yesterday = CALCULATE([Net], FILTER('Date','Date'[Date] = Today()-1 ) )
Last Day = CALCULATE(sum('Table'[Qty]), dateadd('Date'[Date],-1, day))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
123 | |
111 | |
78 | |
74 |