Power BI DAX Tutorial (7/50) - What Is SamePeriodLastyear

  Рет қаралды 64,731

Analytics with Nags

Analytics with Nags

Күн бұрын

Пікірлер: 99
@davidm4062
@davidm4062 2 жыл бұрын
Big thank you for that filter tip! That solved a lot of the issues I been running into.
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Thanks keep learning
@ShaRaj-t2c
@ShaRaj-t2c 5 ай бұрын
@@AnalyticswithNags sir can u share the data set plz
@MdJahidulAlam-gl1jn
@MdJahidulAlam-gl1jn Ай бұрын
How did you find the DIMDATE,SALES table ? There is no such table in the data set.
@Idgaf-1998
@Idgaf-1998 Жыл бұрын
salute to this guy. :)
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
Thanks keep learning share this channel with friends and colleagues
@vinothganapathi5571
@vinothganapathi5571 3 жыл бұрын
Hi bro, For me drill down button is not enabled in the visual. how to enable ?
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
You need to add one more level in the column.
@jagadeeshkumar3913
@jagadeeshkumar3913 3 жыл бұрын
Hi sir while showing previous year tooltip is showing current year only...like cursor displaying same year
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Not sure why it is happening for you.
@jagadeeshkumar3913
@jagadeeshkumar3913 3 жыл бұрын
@@AnalyticswithNags sir in video it is showing....
@javedhassansheik903
@javedhassansheik903 8 ай бұрын
If we do the sales per day with leap year what will it show for the 29 feb
@AnalyticswithNags
@AnalyticswithNags 6 ай бұрын
yes
@narayanjena4259
@narayanjena4259 2 жыл бұрын
Hi Bro in the description the file you have given in that file Sales table and DimDate table not there. Please give that file also
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Dim date check the video related to dim date table creation
@kishorl1762
@kishorl1762 2 жыл бұрын
Hi nags please upload remaining 13 videos also
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
All videos are ongoing. Subscribe to get the latest updates from the channel
@namratasarode7043
@namratasarode7043 2 жыл бұрын
Sales tables is not available in the Excel file...
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check previous video description
@SocialMedia-io1tz
@SocialMedia-io1tz 2 жыл бұрын
I am getting error as samplperiodlastyear require contiguous period last year January 01 week for 3rd jan was there and this year it is 52 for 3rd jan
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Not sure why this is happening to you
@loganathanlavanya1200
@loganathanlavanya1200 Жыл бұрын
How to reach you sir
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
Email to analyticswithnags@gmail.com
@sidharthagoswami7353
@sidharthagoswami7353 2 жыл бұрын
Much appreciation to you. You are actually changing lives for better. Thank you.
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
Thanks keep learning share this channel with friends and colleagues
@adarshshetty1095
@adarshshetty1095 3 ай бұрын
Hi Nags, I am not getting Dimdate option by default when I am trying to write Sameperiodlastyear formula? Do you know why I am facing this issue? Thank you
@krishnagoswami8571
@krishnagoswami8571 2 ай бұрын
Dimdate is a calculated calendar table. You need to create a table
@sabkuchdhela191
@sabkuchdhela191 2 жыл бұрын
what about dates in different fiscal year? This calculation gives me year closing December..I want to have Apr-March FY..
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Create is fiscal year flag and filter that in the report
@siddheshdandagavhal9804
@siddheshdandagavhal9804 2 ай бұрын
1) To create dynamic Last year sales measure which can dynamically changed to month/quarter by drilling down: Sales PrevPeriod = Calculate(Sum(Sales[Sales Amount]), SamePeriodLastYear(DimDate[date].[Date]))
@deepanshusahu3115
@deepanshusahu3115 2 жыл бұрын
I am trying the same function but instead of previous year value of current year is only coming can anyone help
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Not sure
@srinuvasa6986
@srinuvasa6986 Жыл бұрын
Can I get previous financial year till date(PFYTD) with this function please
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
You need to add PYTD(2022dec31) value with CYTD
@kunalkumar-hl6gv
@kunalkumar-hl6gv Жыл бұрын
where is the dataset?
@AnalyticswithNags
@AnalyticswithNags 11 ай бұрын
we dont maintain excel , prepare your own file like the one shown , with your own sample data.
@konkalasaicharan2886
@konkalasaicharan2886 3 жыл бұрын
sir where is sales table ...from the data source link there is data nd product master but not sales table can u pls reply
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Check the description of the video.
@rushikeshgadakh6435
@rushikeshgadakh6435 2 жыл бұрын
Thank you sir, my all concepts are getting cleared by your precise explainations. I appreciate your efforts from bottom of my heart. I shared you channel to my friends. Again thank you. one request - pls upload more videos on more dax functions.
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Thanks keep learning share this channel with friends and colleagues. Sure will upload more videos
@nareshchepuri84
@nareshchepuri84 2 жыл бұрын
Excellent Explanation skills. Kindly Provide the schema of Dimdate,ProductMaster,SalesMaster tables
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check the description of the video.
@cosmic_verse1891
@cosmic_verse1891 2 жыл бұрын
sir please provide the dim date Table & Sales Table, i have already checked in description tables is not available
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
kzbin.info/www/bejne/eJ_UpXWufMeiZq8 Follow the complete playlist for sales fact
@aryanverma9736
@aryanverma9736 3 күн бұрын
Amazing
@learntradingbysanukumar7990
@learntradingbysanukumar7990 2 жыл бұрын
Why we are using .date ? Will you provide the video link?
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check the channel with same question
@rahulgedela9660
@rahulgedela9660 2 жыл бұрын
I think same period last year is used in calculate function intern acting as a filter internally
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
That’s true
@muralikrishnavittanala
@muralikrishnavittanala 2 жыл бұрын
Sir why we use .date I have been waiting for that
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check with same search in channel, I have made a separate video on this
@balaroxx2700
@balaroxx2700 5 ай бұрын
Why the formulas are not in the same line ? Is it OK if I write formulas in a single line
@big-bang-movies
@big-bang-movies 2 жыл бұрын
can you pls tell us how you have created that hierarchy Date table?
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check the date table creation video
@Sivakshmichannel
@Sivakshmichannel Жыл бұрын
Hi sir , can you plse help me to how to create dim tabel using sales tabel or else can you plse upload dimdate datasource link
@AnalyticswithNags
@AnalyticswithNags 6 ай бұрын
Check playlists of this channel and explore topics on the similar line requested by you.
@rohanparakhe4976
@rohanparakhe4976 3 жыл бұрын
hi sir,drill down feature is not showing in chart
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Only if you have two columns or hierarchy then only drill down will appear
@ArchnaVijay
@ArchnaVijay 2 жыл бұрын
Why is this video not getting played
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
check from other device
@sivakrishna3033
@sivakrishna3033 2 жыл бұрын
sir , how to create date hierarchy
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check in channel searching how to create date table
@ramakrishnapentyala4201
@ramakrishnapentyala4201 3 жыл бұрын
Can we take total sales instead of sales amount
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Yes
@zafariqbalsyed6109
@zafariqbalsyed6109 8 ай бұрын
Thanks for zoom out your code ❤
@AnalyticswithNags
@AnalyticswithNags 7 ай бұрын
No problem 😊
@reb4406
@reb4406 3 жыл бұрын
How to get current year sales only? Please explain I have been used TOTALYTD function but it showing same sales by years regarding.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Watch this two videos kzbin.info/www/bejne/q3W0pJuAibVobNU kzbin.info/www/bejne/qonHq5hvhd2Mf8k Choose the one that suits your requirement
@SakthiswarubiniRajagopal-nv5uq
@SakthiswarubiniRajagopal-nv5uq Жыл бұрын
How's the dim date came?
@AnalyticswithNags
@AnalyticswithNags 6 ай бұрын
check dim date creation video
@fabiodigiovine9737
@fabiodigiovine9737 3 жыл бұрын
When I drill down my data by client or product I get the below error (this happen where there are months for a particular client/product with no volumes): “Function ‘SAMEPERIODLASTYEAR’ expects a contiguous selection”. Do you know how to solve this problem? Thanks
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Yes, usually to handle such a scenerio, Insert a record for client and product combination for missing dates with volume as 0 in the database. This how we usually handle such a scenerio
@fabiodigiovine9737
@fabiodigiovine9737 3 жыл бұрын
@@AnalyticswithNags maybe is fine if you have a small table that is easy to amend manually. Definitely not ideal if you have a lot of data. Hopefully Microsoft will fix this issue soon...
@raushanchoudhary103
@raushanchoudhary103 4 ай бұрын
Superb..very nicely explained dear...best wishes
@AnalyticswithNags
@AnalyticswithNags 4 ай бұрын
Thank you so much 🙂
@hiteshjoshi3148
@hiteshjoshi3148 3 жыл бұрын
Thankyou so much .
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
You're most welcome, Keep learning
@rajeevpatchigolla6713
@rajeevpatchigolla6713 3 жыл бұрын
hai bro your explantion is good ..in this video i have some problem how to measure date function?
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Let me check, email me the details
@rajeevpatchigolla6713
@rajeevpatchigolla6713 3 жыл бұрын
@@AnalyticswithNags rajeevpatchigolla@gmail.com
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
@@rajeevpatchigolla6713 email to my email id , the details of your issue , check the desc for my email id
@raviranjansingh5527
@raviranjansingh5527 4 жыл бұрын
great sir,way of explaining every point ,even tiny point u covered.
@AnalyticswithNags
@AnalyticswithNags 4 жыл бұрын
Thanks a ton
@ssaaajdijj
@ssaaajdijj 3 жыл бұрын
excellent description naga's !! please keep it going
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Thank you so much 🙂
@raviranjansingh5527
@raviranjansingh5527 4 жыл бұрын
please update new video sir
@AnalyticswithNags
@AnalyticswithNags 4 жыл бұрын
Hi Ravi, we are extremely happy to see a aggressive learner like this. We are busy this week, as we are also working professionals and committed to our dealines. We will upload videos regularly from next week. Keep learning.
@raviranjansingh5527
@raviranjansingh5527 4 жыл бұрын
@@AnalyticswithNags thanks sir,because i want learn and grow up in i.t filed .Now i am fresher but have a good experience in power bi because of you.
@satishkumardommeti8282
@satishkumardommeti8282 3 жыл бұрын
The concept was very well explained. However, I am facing some issue in this usecase. Would like to calculate growth over corresponding period of the previous year. The granularity needed is calendar month. Model comprises of EmployeeData [FACT] and Calendar [DIMENSION] linked on EmployeeData.ActionDate and Calendar.Date columns. EmployeeData has one row for every active calendar month wherein ActionDate is the last day of month and RecType = “Closing”. For every new joining employee a row is added in the joining month with ActionDate = Date of joining and RecType = “Joiner”. Next we have for every exiting employee a row in the month of exit a row with ActionDate = Last working date and RecType = “Leaver”. We have “FinYear” as slicer wherein our FinYear is Apr-Mar. Current selection by default is “2021-22” and we are in the month of June i.e. 3 months into the Fin. Year. Explanation: 1. Selected FinYear is 2021-22 2. We have 4 (Apr) + 9(May) joiners in the current year (2021-22). No joiners in the month of June. 3. Joiners count displayed is 13 and that is also same as YTD Joiners. 4. There were 39 joiners in the previous year with just 1 during Apr-Jun period. 5. We are using the KPI visual for Joiners and expect to display 13 as the Indicator and compare it with a Goal 1 (Apr-Jun of FY 2020-21) to growth displayed as 130%. 6. We are using SAMEPERIODLASTYEAR function with Joiner and it considers 39 instead of 1. Advance thanks for your guidance.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
All these date calculation works closely with date column. Either you need to choose this quarter as a slicer or filter. Since you don't apply any slicer or filter for the quarter..you chooses entire financial year in a slicer..it consider whole previous year.
@satishkumardommeti8282
@satishkumardommeti8282 3 жыл бұрын
@@AnalyticswithNags Does that mean that date period is full Fin Year (Apr-21 to Mar-22) and hence SAMEPERIODLASTYEAR considers Apr-20 to Mar-21 to evaluate the value. What do you recommend if I wish to look at number of months in current selection and limit SAMEPERIODLASTYEAR functionn also to the corresponding months of LY.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
You need to filter the period in slicer. Then current year measure and LY measure will give you the expected results.
@satishkumardommeti8282
@satishkumardommeti8282 3 жыл бұрын
@@AnalyticswithNags Thanks yes this seems to do the trick. Now the next requirement is how to dynamically set this visual level filter with a measure. I am trying but without much success. Can you please share some references that can help achieve this. Advance thanks.
@satishkumardommeti8282
@satishkumardommeti8282 3 жыл бұрын
I continued with my efforts to resolve it by myself and have fixed it. Thought I should keep you informed and not waste your time. Thanks once again.
How to calculate MTD QTD YTD in Power BI DAX Tutorial (6/50)
15:32
Analytics with Nags
Рет қаралды 165 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 1 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3,3 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 36 МЛН
Power BI DAX Tutorial (9/50) - What is DateAdd Function
10:18
Analytics with Nags
Рет қаралды 56 М.
All vs Allselected vs Allexcept DAX | Power BI Interview
12:25
LearnWidGiggs
Рет қаралды 24 М.
Power BI DAX Tutorial (4/50) - What is calculate Function
12:13
Analytics with Nags
Рет қаралды 111 М.
Power BI DAX Tutorial (10/50) - What is DatesInPeriod
10:24
Analytics with Nags
Рет қаралды 50 М.
Power BI Tips and Tricks
16:21
Kevin Stratvert
Рет қаралды 221 М.
Time Intelligence calculations with Power BI | Community Webinars
50:37
Microsoft Power BI
Рет қаралды 76 М.
Unraveling the Layers of Data Warehouse: A Staging Layer Demonstration
17:26
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 1 МЛН