Forum Discussion
Time Difference sales data
Hello Everyone,
I am trying to create a report with the sample data attached. Below is the Layout of the report which i want -
So, I have all the data available as Columns. I just can't figure out how can I put the data in this format.
Also, When I am trying to calculate the Previous Month/year/quarter values sometimes the calculated measures are not showing anything.
Steps I followed -
1- Created a Dim_Date table with continuous date from 2000-01-01 to 2099-12-31.
2- Created measures for Previous month/year/quarter ->
subho220 , Do not use .Date. Mark Date table as date table
QQC Prev Month = CALCULATE(SUM('ICS_[Warehouse_Balance_Final]'[QuantityinQualityControl]),PREVIOUSMONTH(Dim_date[Date]))
or
QQC Prev Month = CALCULATE(SUM('ICS_[Warehouse_Balance_Final]'[QuantityinQualityControl]),datesmtd(dateadd(Dim_date[Date],-1,month) ))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWsCalculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
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 :radacad sqlbi My Video Series Appreciate your Kudos.
2 Replies
- amitchandakSuper User
subho220 , Do not use .Date. Mark Date table as date table
QQC Prev Month = CALCULATE(SUM('ICS_[Warehouse_Balance_Final]'[QuantityinQualityControl]),PREVIOUSMONTH(Dim_date[Date]))
or
QQC Prev Month = CALCULATE(SUM('ICS_[Warehouse_Balance_Final]'[QuantityinQualityControl]),datesmtd(dateadd(Dim_date[Date],-1,month) ))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWsCalculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
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 :radacad sqlbi My Video Series Appreciate your Kudos.- subho220Helper I
thanks amitchandak for your quick resolution. appreciate it 🙂