A simplified solution could be Column = CALCULATE( MAX('Table'[Transaction Date]), FILTER( 'Table', 'Table'[Transaction Date] < EARLIER('Table'[Transaction Date]) ) )
@meghalohar23672 ай бұрын
I just tried this approach. thanks for sharing
@SatheeshPK-jg1dg2 ай бұрын
Hi Guys, Below Dax also works the same way: Using Earlier = MAXX(FILTER(Date_Master, Date_Master[Date] < EARLIER(Date_Master[Date])), Date_Master[Date]) Using Offset = CALCULATE(MAX(Date_Master[Date]), OFFSET(-1,ALL(Date_Master[Date]))) Using Window Function = CALCULATE(MAX(Date_Master[Date]),WINDOW(0,ABS,-1,REL,ALL(Date_Master[Date]))) If u have a seperate id its fine the above dax only requires the date column nothing else ....
@learnwidgiggs2 ай бұрын
@@SatheeshPK-jg1dg thanks for sharing the alternate solution.
@SatheeshPK-jg1dg2 ай бұрын
@@learnwidgiggs fan of ur work Shashank
@rahulmehla20142 ай бұрын
Hlo Shashank, this is my solution: Result = CALCULATE( MAX('Table'[Transaction Date]), FILTER('Table','Table'[ID] = EARLIER('Table'[ID])-1) )
@Yash_15_102 ай бұрын
yes it also works 👍
@oKUNDURUVYSHNAVI2 ай бұрын
Can I know why we use Max function here
@rahulmehla2014Ай бұрын
@@oKUNDURUVYSHNAVI first of all we need to give a expression here which means a single value should be there so max give the maximum value in the current filter context i.e. a single value
@ritudhuriya3009Ай бұрын
Hi! I was asked this power bi question recently in an interview. Could you please help with the solution? Appreciate your help! The question is - I have one date slicer which select the start and end date using drag feature, and a second slicer which has list - last 7 days, last 15 days, last 21 days. the basis of second slicer will be the end date selected in the first slicer. Next I have a clustered bar chart having dates (categorical) on y axis and sales on x axis (day wise). when I make a selection in the second slicer accordingly the dates should be visible in the chart. How to implement this?
@Pooja_Bhanu2 ай бұрын
Thank you so much Shashank for sharing the dax related content. Useful
@learnwidgiggs2 ай бұрын
@@Pooja_Bhanu welcome 🙂
@aakashmohan98272 ай бұрын
Result = LOOKUPVALUE(Table' [Transaction Date], 'Table' [ID], 'Table' [ID]-1)
@MiteshYadav2 ай бұрын
I have faced similar kind of situation while working in my organization.. Data contained water sensor data where I needed to subtract and group by data based on daily, in that I needed to subtract first data after or equal to 12:00 am with last data before 12 am..
@suchitraroutray4705Ай бұрын
Hi sir, Could you please share solution of this query.. Write a dax to create a date table where day should starts from today and it should be automatically incrememted for 3yrs u shouldn't hardcode the end date here.. How to write the dax
@sreesri67472 ай бұрын
I created new column and used previousday dax It worked well. Please correct me if I am wrong
@Aaradhya_Jauhari2 ай бұрын
OFFSET , WINDOW(ABS REL)🤔
@loosuloosudon44942 ай бұрын
Can be done
@buzzfeedREDАй бұрын
Go To 1:27
@New2you09Ай бұрын
Variables have pretty much replaced the need for the earlier function
@nemo76062 ай бұрын
Sir I want to become a business analyst. Can you tell me the best business analyst course.
@C15-k4dАй бұрын
In pbirs opening folders and paginated reports but datasource manage data base page showing as something went wrong and please try again later
@sameerkale72822 ай бұрын
Not getting calls for Power Bi developer or Data Analyst. Please give me some suggestions.
@AashishTelgote-x4g2 ай бұрын
No jobs
@hnsri94Ай бұрын
Are you fresher or experienced ?
@Ramkuntal20002 ай бұрын
thanks! 🙌
@VandanaSatwani2 ай бұрын
Facing trouble in DAX FORMULA in custom column how to solve
@owncreatechannel64262 ай бұрын
Nice explanation
@learnwidgiggs2 ай бұрын
@@owncreatechannel6426 thank you 🙏
@KomalSharma-qc6th2 ай бұрын
Sir, i have done a virtual data analyst internship on 360digitmg and i missed the deadline by 1 hr because they closed the project on sunday so i didn't get the certificate. So in that case what i need to do? Should i still put this internship in my experience section or just add it to the project section? For now i am using it in my project section but i am bit confused...I will look forward to hearing from you soon.
@learnwidgiggs2 ай бұрын
Projects section.
@KomalSharma-qc6th2 ай бұрын
@@learnwidgiggs okay! Thankyou for your esponse.
@amolgaikwad69772 ай бұрын
Very well explained, Sir..
@learnwidgiggs2 ай бұрын
@@amolgaikwad6977 glad you liked it 🙏
@the_legends19892 ай бұрын
It's possible with Lookup as well😅
@raushankumarpandey8972 ай бұрын
What if I'd column is not there..?plz suggest
@rajm53492 ай бұрын
Hi sir, what is unit test in powerbi and thanks for making the videos.
@chethan41602 ай бұрын
Offset we can use
@Rajveer1-x3s2 ай бұрын
Hi Shashank...... If file size is greater than 1gb then how can we import data? Will u plz...give solution?
@SatheeshPK-jg1dg2 ай бұрын
we can still load data greater than 1 gb inside the power query it uses the vertipac and x-velocity engine to compress the data And while pushing the data inside the power bi if it is greater than 1gb even after the data compression is done it will not load the data into the power bi model otherwise it will.
@mahendra9512 ай бұрын
Can it be done without ID column?, if yes, can you please explain?
@learnwidgiggs2 ай бұрын
@@mahendra951I'm not sure about it.
@mmadhurrr2 ай бұрын
We can use rankx to create a id type column and use the same logic. This way it can be done without id column.
@SatheeshPK-jg1dg2 ай бұрын
ID is not required check out my comment for multiple ways. (It works for me) Below Dax also works the same way: Using Earlier = MAXX(FILTER(Date_Master, Date_Master[Date] < EARLIER(Date_Master[Date])), Date_Master[Date]) Using Offset = CALCULATE(MAX(Date_Master[Date]), OFFSET(-1,ALL(Date_Master[Date]))) Using Window Function = CALCULATE(MAX(Date_Master[Date]),WINDOW(0,ABS,-1,REL,ALL(Date_Master[Date]))) If u have a seperate id its fine the above dax only requires the date column nothing else ....
@zenjiyt8381Ай бұрын
@@SatheeshPK-jg1dg offset one will throw an error of " a circular dependency was detected"
@Itsme654672 ай бұрын
write a dax query for below mentioned scenario I Have Joining date and end date in employee table - now need to calculate the total number of active employees - where end date is blank consider it as active employee - where end date is greater than today consider it as active employee -joining date is less than end date consider it as active employee till before end date consider employee as active ex: (joining date - 1-Jan-24, end date - 15th Aug 2024) so the employee should be active till before end date for example mentioned table format should be the final result date Active left join Jan 135 6 0 Feb 132 4 3 Mar 129 20 1 Apr 112 4 3 may 109 0 1 Jun 112 5 3 Jul 109 5 2 Aug 109 1 5 Sep 113 0 5 Oct 0 0 0 Nov 0 0 0 Dec 0 0 0 Can you please help me with this