Power BI DAX Tutorial (8/50) - How to Compare Previous Month Quarter Year Values

  Рет қаралды 82,210

Analytics with Nags

Analytics with Nags

Күн бұрын

Пікірлер: 71
@Prateek987
@Prateek987 3 жыл бұрын
Thank a lot! One of the rare videos I have seen where monthly percent difference is being calculated!!
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
You are welcome!
@dineshvardam2176
@dineshvardam2176 2 жыл бұрын
Sir, your videos are also asset for me , thanks a lot for creating such helpful videos .I am searching such video series for DAX from last 1 year.
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Thanks keep learning
@gouravhalder9195
@gouravhalder9195 3 жыл бұрын
In case of Calculating % difference, will it not be divided by [Sales Previous month] measure?
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Yes
@balamira297
@balamira297 2 жыл бұрын
That's what even I was thinking.
@mrnawaz5341
@mrnawaz5341 3 ай бұрын
Where from I get date dim and sales data​@@AnalyticswithNags
@GopiKrish895
@GopiKrish895 7 ай бұрын
Hi, @AnalyticswithNags thanks for helping me out. Now I have an issue, after creating a Date Hierarchy and create this previous month Calculated column. The date column shows February first instead of January, same for months like June first then May. How should I correct this. All these happens in table viz in report view. I created Date table using DAX- calendarauto().
@siddheshdandagavhal9804
@siddheshdandagavhal9804 6 ай бұрын
% Diff from prev month can be calculated using the previousmonth function. Similarly we need to create different measures to get %difference for year and quarter. Can we use the previous period function from last video to dynamically get the %difference?
@UmaMukherjee-y4l
@UmaMukherjee-y4l 10 ай бұрын
5:57 we should compare previous month as per current month... but u calculated based on previous month...
@AnalyticswithNags
@AnalyticswithNags 10 ай бұрын
it depends on the business , you can do either ways
@bharaths5906
@bharaths5906 7 ай бұрын
Hi, In current video we are seeing about DAX on PREVIOUS MONTH comparision, so whats the difference between this DAX on PREVIOUS MONTH and PREVIOUS MONTH (DATES MTD) function. Does both gives the same result
@rashmipatil-c6b
@rashmipatil-c6b 5 ай бұрын
PREVIOUSMONTH Function: Purpose: This function returns a table containing the dates from the previous month in the current context. Usage: It is used when you want to compare the entire previous month with another period, like the current month or a specific month. Example: If you use PREVIOUSMONTH(Date[Date]), it will return all the dates from the previous month based on the context of the Date column. 2. DATESMTD (Dates Month-To-Date) Function: Purpose: This function returns a table containing a set of dates that represent the current month up to the current date in the month. Usage: It is used when you want to compare month-to-date performance with a similar period in another month (like the same period last month or year). Example: If you use DATESMTD(Date[Date]), it will return all dates from the start of the current month up to the current date.
@zainulabdeen3344
@zainulabdeen3344 5 ай бұрын
from where can i get the sales and dim.date table
@sharulchauhan
@sharulchauhan 2 жыл бұрын
hi I want to one thing, how can we make this more dynamic? If we have date filter and depending on whatever number of days/months user selects, we show him the result of similar previous period (e.g.: if user selects data for november and december then we compare with september and october, or if user just wants to see only march month then we compare with only feb month).
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Yes. Soon i will make a video on this
@manvitha_1234
@manvitha_1234 Жыл бұрын
@@AnalyticswithNags Can please share the video link for the above question
@saisrinu7526
@saisrinu7526 2 жыл бұрын
What if one of the values is null for me, it is showing infinity in the % diff where one of the values is empty.....
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Use divide function that will handle
@shubhambhangale4682
@shubhambhangale4682 2 жыл бұрын
Hello, how can we enable the totals for measures? As shown in your video, we can't see totals when we use PREVIOUS{month/day/year/quarter} functions. However, I see totals for SAMEPERIODLASTYEAR function.
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Not sure about your issue
@shubhambhangale4682
@shubhambhangale4682 2 жыл бұрын
@@AnalyticswithNags At 3.55(3 mins 55 secs), we can't see totals for Sales PrevMonth column. How can we show totals for this column?
@cosmos7685
@cosmos7685 3 жыл бұрын
Can you please send the data source file because link in description contained previous file it doesn't have sales and dimdate table.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
For DimDate creation follow this link. kzbin.info/www/bejne/eJ_UpXWufMeiZq8 For sales fact use any of the sales excel file
@MoonShine-bs6cl
@MoonShine-bs6cl 5 ай бұрын
If i want to calculate growth% for year and quarter combined how to do??
@shubhabratadey
@shubhabratadey 2 жыл бұрын
How has the "DimDate" table been created? If you can share, that'll be helpful
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check the channel with date dimensions creation
@VinodKumar-zn8ty
@VinodKumar-zn8ty Жыл бұрын
Hello Sir, for %sales = (Current value - previous value)/previous value right sir But in the video it is (Current value - previous value)/Current value Which is the right one to use sir
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
Previous value if you want to see the % against that
@harshithabobolu7106
@harshithabobolu7106 2 жыл бұрын
Hi Nag, what's the correct formula for calculating %diff
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
This is the one I shown in demo
@duleguntlasaisree7138
@duleguntlasaisree7138 3 жыл бұрын
Hi Sir, I have a query here. What is the diff between PREVIOUSYEAR and SAMPLEPERIODLASTYEAR
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Previous year can go one year back only(only year). Where as same period last year will go one year / one quarter / month based on what period you analyse.
@amirtamboli938
@amirtamboli938 3 жыл бұрын
Hi Sir, I have a Product Table with Connected Dim Group, Category, and SubCategory. Product table connected to Sales Table as sales table having product ID. Sales Table Connected to DimDate Table. I have created measures as instructed. All measures are working correctly with the date hierarchy. But when I am trying to get Sale by Group or category or Subcategory. Selected a Qtr 1 / dates but the result is showing same sale value for each (row) of Group or category or Subcategory at PrevMonth Sale & Sales value. pls help, thank you.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Not sure what you are asking about. Can you able to explain it better
@ravitejatukaram9683
@ravitejatukaram9683 2 жыл бұрын
Hi Nag can share me this excel link in description is different....
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Use the previous video description.
@mastanvallishake9191
@mastanvallishake9191 3 жыл бұрын
Please attach the data source for my purpose to calculate the same in my desktop. Thank you
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Check the description of the video
@rakeshchaudhary1110
@rakeshchaudhary1110 3 жыл бұрын
I want to know if am selecting march then sales come of three month camculative sales if I am selecting jun then camculative sales of jan to jun
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Answer in this video kzbin.info/www/bejne/nnuvgHWso8SZbs0
@gopalakrishnarajarapu491
@gopalakrishnarajarapu491 3 жыл бұрын
Iam using previous year but. . can't show visuals ..what problem .. please tell me
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Not sure what you are trying. Can't help much in the comments. Join the telegram group ( link in description) and post your queries there
@mabellinnmaung
@mabellinnmaung 7 ай бұрын
Why SUMX function is not used?Will it be the same?
@arajashekar-m8z
@arajashekar-m8z 4 ай бұрын
no
@frustratedgaiii4088
@frustratedgaiii4088 2 жыл бұрын
Why we use calculate in every formula , why can't we only sum the sales amount and then add our expression
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
We can simply use sum if we don’t use any filters. It is good practice to use calculate
@LFValadas
@LFValadas 3 жыл бұрын
What if instead of the month, we want to compare by weeks?
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
You can compare using week number
@LFValadas
@LFValadas 3 жыл бұрын
@@AnalyticswithNags How? There is no previousweek...
@supakornsingtheintrakul4872
@supakornsingtheintrakul4872 Жыл бұрын
Thank you very much🥹
@AnalyticswithNags
@AnalyticswithNags Жыл бұрын
Thank you! Cheers!
@Nindoish
@Nindoish 3 жыл бұрын
The % diff formula is wrong. Percentage difference formula is (Current - Previous)/Previous you used (Current-Previous)/Current
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Thanks for highlighting. But, I hope you understand how to calculate % diff using DAX
@Baki_Hanma_3
@Baki_Hanma_3 3 жыл бұрын
how to compare previous week sales with current week?
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
It is not easy to answer. soon will make a video on this and keep watching our videos.
@venkatareddykummitha5863
@venkatareddykummitha5863 3 жыл бұрын
I want the total sales of the previous month in the card visual.
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
Get the Previous month begging and end in variable and Use that variables in calculate filters
@smartrose7997
@smartrose7997 Жыл бұрын
can you pls help me with a dax for latest records in previous month..?
@AnalyticswithNags
@AnalyticswithNags 10 ай бұрын
Check playlists of this channel and explore topics on the similar line requested by you.
@irfandaud7380
@irfandaud7380 2 жыл бұрын
% Difference is not calculated correctly for the Month and Quarter as well . T Sale PrevQuarter = CALCULATE(DAXDATA[T Total Sale],PREVIOUSQUARTER(DAXDATEGEN[Date])) T % QTD Diff = DIVIDE(DAXDATA[T Total Sale] - DAXDATA[T Sale PrevQuarter] , DAXDATA[T Sale PrevQuarter]))
@AnalyticswithNags
@AnalyticswithNags 2 жыл бұрын
Check the formula for T total sales.
@venkatareddykummitha5863
@venkatareddykummitha5863 3 жыл бұрын
Interview based Dax questions, please
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
We do teaching to gain knowledge on the subject, not as per interview and interview questions. if you are focused only on getting job and interview and questions refer to some other place
@ashishmohan4707
@ashishmohan4707 4 жыл бұрын
Hi very useful video and very practical need everyone for every project ......very big thanks to share with us. If it can possible can you plzz provide us excel data which u used for this Very great ful for us...👌👌👌👌👌👌👌👌💐💐💐💐🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂🎂
@AnalyticswithNags
@AnalyticswithNags 4 жыл бұрын
Thanks for your feedback. Data source file link Updated in Description. Keep Learning.
@venkatareddykummitha5863
@venkatareddykummitha5863 3 жыл бұрын
hi nag
@AnalyticswithNags
@AnalyticswithNags 3 жыл бұрын
hi venkatareddy kummitha
@BhanusagarPagadala
@BhanusagarPagadala 3 ай бұрын
Worst tutorial ever
@AnalyticswithNags
@AnalyticswithNags 2 ай бұрын
Thanks for letting me know, I will try to improve better
Power BI DAX Tutorial (9/50) - What is DateAdd Function
10:18
Analytics with Nags
Рет қаралды 61 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Power BI DAX Tutorial (7/50) - What Is SamePeriodLastyear
10:03
Analytics with Nags
Рет қаралды 71 М.
The Excel Tool That Does What PivotTables Can’t (File Included)
13:59
MyOnlineTrainingHub
Рет қаралды 283 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 286 М.
Power BI DAX Tutorial (10/50) - What is DatesInPeriod
10:24
Analytics with Nags
Рет қаралды 55 М.
Power BI DAX Tutorial (4/50) - What is calculate Function
12:13
Analytics with Nags
Рет қаралды 123 М.