Forum Discussion
Using Previous Quarter
I am using the following formula but I got blank as a result.
# Quote Previous Quarter = calculate(COUNT('Quote Request Tracker WA'[Unique Identifier]),PREVIOUSQUARTER('Quote Request Tracker WA'[QR Received.date].[Date]))
When using bar chart adding [QR Received.date] on the axis I get the expected value, but I need a card.
3 Replies
- nvprasadSolution Sage
Hi,
For all time intelligence functions need continuous dates . Hope you are using the date column to have continuous dates if not please add date table and try.
Appreciate a Kudos! π
If this helps and resolves the issue, please mark it as a Solution! πRegards,
N V Durga Prasad - amitchandakSuper User
Anonymous , Make sure You have date table marked as a Date. Also do not use ".Date" unless you have a timestamp in date.
example measures
Last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER))) Last complete QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD( ENDOFQUARTER(dateadd('Date'[Date],-1,QUARTER)))) Last to last QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-2,QUARTER))) Next QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],1,QUARTER))) Last year same QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,Year))) Last year same QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(ENDOFQUARTER(dateadd('Date'[Date],-1,Year)))) trailing QTR = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,QUARTER)) trailing 4 QTR = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-4,QUARTER))To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
Appreciate your Kudos. - AnonymousNot applicable
Hi Anonymous ,
Dont use .date,try the measure as below:
# Quote Previous Quarter = calculate(COUNT('Quote Request Tracker WA'[Unique Identifier]),PREVIOUSQUARTER('Quote Request Tracker WA'[QR Received.date]))
Best Regards,
KellyDid I answer your question? Mark my post as a solution!