CALCULATE 📊Current, Previous & SamePeriodLastYear | MTD QTD YTD | MoM QoQ YoY In POWER BI Using DAX

Sdílet
Vložit
  • čas přidán 8. 08. 2023
  • Hey Everyone Welcome Back to my CZcams Channel "Milestone Creator".
    So, today in this video we are going to see how we can calculate:-
    Current Month To Date,Current Quarter To Date,Current Year To Date,Previous Month sales,previous quarter sales,Previous Year Sales,Previous Month To Date,Previous Quarter To Date,Previous Year To Date,Same perios last month,Same period Last Year,Same Period Last quarter,Month On Month,Year On Year,Quarter On Quarter,Current, Previous & SamePeriodLastYear | MTD QTD YTD | MoM QoQ YoY POWER BI
    Using Time Intelligence DAX Functions
    Pbix File:- tinyurl.com/2jva36cu
    Data Set:- tinyurl.com/48nt7sd7
    #DAX #powerbi
    ✅Total_Sales = CALCULATE(sum(Orders[Sales]))
    ✅Current MTD = CALCULATE(TOTALMTD([Total_Sales],DATESMTD(Orders[Order Date])))
    ✅Current QTD = CALCULATE(TOTALQTD([Total_Sales],DATESQTD(Orders[Order Date])))
    ✅Current YTD = CALCULATE(TOTALYTD([Total_Sales],DATESYTD(Orders[Order Date])))
    ✅Previous Month Total Sales = CALCULATE([Total_Sales],PREVIOUSMONTH(DATESMTD(Orders[Order Date])))
    ✅Previous Quarter Total Sales = CALCULATE([Total_Sales],PREVIOUSQUARTER(DATESQTD(Orders[Order Date])))
    ✅Previous Year Total Sales = ✅CALCULATE([Total_Sales],PREVIOUSYEAR(DATESYTD(Orders[Order Date])))
    ✅Previous MTD = ([Previous Month Total Sales] + [Current MTD])
    ✅Previous QTD = ([Previous Quarter Total Sales]+[Current QTD])
    ✅Previous YTD = ([Previous Year Total Sales]+[Current YTD])
    ✅SPLY MTD = CALCULATE([Current MTD],SAMEPERIODLASTYEAR(Orders[Order Date]))
    ✅SPLY QTD = CALCULATE([Current QTD],SAMEPERIODLASTYEAR(Orders[Order Date]))
    ✅SPLY YTD = CALCULATE([Current YTD],SAMEPERIODLASTYEAR(Orders[Order Date]))
    ------------------------------------------------------------------------------
    👋 Additional resources
    ------------------------------------------------------------------------------
    Time Intelligence DAX | Current, Previous & SamePeriodLastYear | MTD QTD YTD | MoM QoQ YoY POWER BI:-
    • CALCULATE 📊Current, Pr...
    Power Bi Log In With Personal E-Mail ID || ( No Need Of Work/Student-Mail ID ) [ Update-2013 ]:-
    • Power Bi Log In With P...
    Add POWER to your Titles & Sub_Title in Power BI I| The NEW TRICK you need to know In HINDI:-
    • Add POWER to your Titl...
    New Features Of Title & Subtitle In Power Bi [ March - 2023 Update ]:-
    • New Features Of Title ...
    How To Update Your Power Bi Desktop To Latest Version || [👉In 2023 ]:- • How To Update Your Pow...
    What's New In POWER BI-March 2023 Release🔥:-
    • What's New In POWER BI...
    📊 Complete Power Bi interview Q & A For Freshers - [ Latest 2023 ]:-
    • 📊 Complete Power Bi In...
    What Is DAX - Power Bi ? 📊Complete Introduction🔥:-
    • What Is DAX - Power Bi...
    DAX Interview Questions and Answers - POWER BI [ Part - 1 ]🔥:-
    • DAX Interview Question...
    DAX Interview Questions and Answers - POWER BI [ Part - 2 ]🔥:-
    • DAX Interview Question...
    Super 30 DAX Interview Question & Answer - POWER BI🔥:-
    • Super 30 DAX Interview...
    Rate Yourself In DAX - POWER BI / Excel 📊:-
    • Rate Yourself In DAX -...
    Introduction To DAX:-
    • Introduction To DAX - ...
    DAX Operators and Text / String Functions - Power BI:-
    www.youtube.com/watch?v=UyWCp...
    Complete Logical DAX Function In - POWER BI:-
    • Complete Logical DAX F...
    Complete Date And Time DAX Function In - POWER BI:- • Complete Date And Time...
    Complete Math And Statistical DAX Function In - POWER BI:-
    • Complete Math And Stat...
    DAX Operators and Text / String Functions - Power BI :-
    • DAX Operators and Text...
    Complete Time Intelligence DAX Function In - POWER BI:-
    • Complete Time Intellig...
    Complete Filter DAX Function In POWER BI :
    • Complete Filter DAX Fu...
    🔔 Subscribe to my CZcams channel:-
    czcams.com/channels/Wfz.html...
    Social Media Link
    --------------------------------
    Linkedin:- linkedin.com/in/deepan-kumar-patel-777591202
    Facebook:- / dipan.patel.. .

Komentáře • 51

  • @amitsundriyal1917
    @amitsundriyal1917 Před 11 měsíci +1

    Bro maza aa gaya,.... Bhut pareshan tha is DAX k liye.... Thank you bro

  • @surabhijagadish5210
    @surabhijagadish5210 Před 4 měsíci

    A million thanks for this video. Clearly understood all concepts without any doubt.

  • @ahtishammasood1680
    @ahtishammasood1680 Před 7 měsíci

    Informative in simple manners. Thanks

  • @mktulsani
    @mktulsani Před 6 měsíci

    Simply Great 👍
    Very Helpful

  • @adhipkumarnaik2167
    @adhipkumarnaik2167 Před 11 měsíci

    Thanks for this video. It's really really helpful one. "Love to Milestone Creator"❤

  • @vitthalchavan7578
    @vitthalchavan7578 Před 9 měsíci

    Excellent explanation of time intelligence dax function in PB

  • @binapanipatel5409
    @binapanipatel5409 Před 11 měsíci

    Informative video.

  • @mtad-health
    @mtad-health Před 11 měsíci

    Very nice, it's great, thanks

  • @surbhirautaray6872
    @surbhirautaray6872 Před 5 měsíci

    Thank you so much for this level of clarity.

  • @jodeleon8
    @jodeleon8 Před 4 měsíci +1

    Just a suggestion. It would be better using the following sintaxis, for instance:
    SPLY QTD =
    CALCULATE(
    [Current QTD],
    SAMEPERIODLASTYEAR(DATESYTD(Orders[Order Date].[Date]))
    )
    Is better because it wont generate an error when apply a page filter by category or some other dimension in your model

  • @pankajkishore2257
    @pankajkishore2257 Před 3 měsíci +1

    Awesome bhai nice explanation 🎉

  • @user-es2mr8nt9e
    @user-es2mr8nt9e Před 5 měsíci

    thank you, your video helps me

  • @shitalpisolkar5176
    @shitalpisolkar5176 Před 11 měsíci

    Very nicely explained

  • @Chetan_15
    @Chetan_15 Před 11 měsíci

    very very help full need more videos on imp interview question as exp for 2 to 3 years

  • @user-gu5zt6cp3v
    @user-gu5zt6cp3v Před 11 měsíci

    Very nice explanation

  • @lifeandliving7861
    @lifeandliving7861 Před 11 měsíci

    Nice

  • @user-lm5wb8vi1x
    @user-lm5wb8vi1x Před 4 měsíci

    Finished watching

  • @user-tm4sz9qj6i
    @user-tm4sz9qj6i Před 6 měsíci

    Thank you

  • @Resh_Aadil_AllaboutExperience

    Great content bro👏👍

  • @Gagan_Sky
    @Gagan_Sky Před 11 měsíci +1

    What would be the dax previous QTD - means if today I am in Q3 from July 1 2023 to Aug 18 2023. So what would be the output for previous QTD means for Q2 from Apr 1 2023 till May 18 2023.

  • @nirajpatel2020
    @nirajpatel2020 Před 11 měsíci

    👍👍👍

  • @manjunatharalikatti2202
    @manjunatharalikatti2202 Před 11 měsíci +1

    Nice .. informative post!
    It will be more interesting if you can explain quarters start not on January, restrict the day from slicer for example am on 12th Aug 2023 MTD will show from 01Aug to 12th Aug 2023, I want to see current MTD from 01Aug2023 to 11thAug2023.

    • @nikhil09090
      @nikhil09090 Před 7 měsíci

      MTD = CALCULATE(
      [Total Sales],
      FILTER(
      ALL(Orders[Order Date]),
      Orders[Order Date] >= DATE(2023, 8, 1) && Orders[Order Date]

    • @manjunatharalikatti2202
      @manjunatharalikatti2202 Před 7 měsíci

      @@nikhil09090 Thanks for response, Keep sharing knowledge..
      Its really nice to watch your videos, knowledge full !.

  • @RFA8280
    @RFA8280 Před 6 měsíci +1

    Sir, Very nice video but the concept for previous month/quarter to date is wrong.PMTD - Previous month to date is the period starting from the beginning of last calendar month and ending at the current day of last month. Please correct in video so that other people learning will get right logic.

  • @chalanatyjostna2229
    @chalanatyjostna2229 Před 6 měsíci

    Hi I have a question. I am confused calculating pytd value.
    can you tell me which is correct between the below two to calculate PYTD avg price.
    should we use just the avg_price or calculated YTD avg_price?
    PTYD Avg Price = CALCULATE([YTD Avg Price],SAMEPERIODLASTYEAR(Calender[Date].[Date]))
    or
    PTYD Avg Price = CALCULATE([ Avg Price],SAMEPERIODLASTYEAR(Calender[Date] .[Date]))

  • @prathmeshwavhal8767
    @prathmeshwavhal8767 Před měsícem

    Nice,
    But i required Indian calendar year formula

  • @anandreddy2992
    @anandreddy2992 Před 7 měsíci

    What if the date column is having duplicate dates, datesytd is not accepting, how to handle this?

  • @awadheshma
    @awadheshma Před 2 měsíci

    Is it mandatory to use DateMTD, QTD, YTD when we are using TotalMTD ,QTD, YTD only then also answer is correct

  • @AshishAnand-ry1kt
    @AshishAnand-ry1kt Před 2 měsíci

    ye kpi card mein kaise show karein.....sply and cmtd mein comparison
    ?

  • @ChitrakshiSaxena
    @ChitrakshiSaxena Před 3 měsíci

    In the dataset sales column, from order id 260 to 365 instead of sales data, there is date.

  • @yogeshbalwani6442
    @yogeshbalwani6442 Před 5 měsíci

    How do i calculate these metrics when the calendar is not standard . For example fiscal year starts from 1 feb and ends on 31 Jan

  • @pmohantymohanty7
    @pmohantymohanty7 Před měsícem

    Did you check the file link you have uploaded?
    is it okay?

  • @shaikakil7957
    @shaikakil7957 Před 11 měsíci

    Why we have to take New Table while creating Date In Dax ?

  • @RCtalks186
    @RCtalks186 Před 6 měsíci

    Bro im using MTD sales and qtd sales different measures but value is same bro anything wrong in calculation

  • @prathameshmane4338
    @prathameshmane4338 Před 4 měsíci

    Bhai Previous Date kaa batade..

  • @user-rc2uc1kv6w
    @user-rc2uc1kv6w Před 23 dny

    please give the dataset again which wont contain error, i am noob to power bi

  • @user-hc6dv7pi7x
    @user-hc6dv7pi7x Před 6 měsíci

    HOW TO Create a line and clustered chart and compare this year vs last year's sales along with growth % ?

    • @mrsecular238
      @mrsecular238 Před 5 měsíci

      Create a measure for variance= total sales this year - total sales last year. Now take dual axis graph, x axis give date, y axis give total sales this year and total sales last year, for line y axis give the variance created.

  • @user-pd4kq6jy3r
    @user-pd4kq6jy3r Před 2 měsíci

    great tutorial, keep up the good work

  • @pranavsharma9328
    @pranavsharma9328 Před měsícem

    queries not working

  • @user-rc2uc1kv6w
    @user-rc2uc1kv6w Před 26 dny

    error while loading dataset some error in the table

  • @debabrataroy1777
    @debabrataroy1777 Před měsícem

    Data of current month must be filled up to get correct output in SPLY MTD, SPLY QTD & SPLY YTD.

  • @debabrataroy1777
    @debabrataroy1777 Před měsícem

    SPLY MTD, QTD & YTD data mismatching. Data must be taken up to August 4 of 2022, instead taking data of whole August month.

  • @user-hy2nv8co9v
    @user-hy2nv8co9v Před 5 měsíci

    Please say till date bro😉

  • @neerajghansla6062
    @neerajghansla6062 Před 11 měsíci

    hi your LastYearYTD period is wrong.. LastYearYTD means till date ie. 2022-01-01 to 2022-08-03.

  • @bslacrimosa
    @bslacrimosa Před 6 měsíci

    Was he switching languages mid sentence?

  • @Indian-lifestyle-vlogs
    @Indian-lifestyle-vlogs Před 7 měsíci

    Bhai sb formula glt ho rha hai aapka ... Without filter koi answer nhi AA raha hai... Ek fir se check kro aap.. aapa data set ko increase kr k dekho koi formula kaam nhi krega... Please help kre agr time to ho fir se isi ka part 2 bnaye

  • @darshanchaudhari7969
    @darshanchaudhari7969 Před 9 měsíci

    You have used wrong method complicated dax

    • @milestonecreator2545
      @milestonecreator2545  Před 9 měsíci

      If you think you have a better idea than this then definitely you can share that in the comment section. So that others can also benefit from that sir. Thanks for your comment. I will appreciate your New method.