@@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
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?
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..
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
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.
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
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 ....
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 ....
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.
Dataset link:
docs.google.com/spreadsheets/d/1lhVCRJ6F2XFA6pCzHLf6oP5zDC6b0UXx/edit?usp=sharing&ouid=102679157628567582944&rtpof=true&sd=true
A simplified solution could be
Column = CALCULATE(
MAX('Table'[Transaction Date]),
FILTER(
'Table',
'Table'[Transaction Date] < EARLIER('Table'[Transaction Date])
)
)
I just tried this approach. thanks for sharing
Hlo Shashank, this is my solution:
Result =
CALCULATE(
MAX('Table'[Transaction Date]),
FILTER('Table','Table'[ID] = EARLIER('Table'[ID])-1)
)
yes it also works 👍
Can I know why we use Max function here
@@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
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?
Thank you so much Shashank for sharing the dax related content. Useful
@@Pooja_Bhanu welcome 🙂
OFFSET , WINDOW(ABS REL)🤔
Can be done
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..
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
It's possible with Lookup as well😅
Sir I want to become a business analyst. Can you tell me the best business analyst course.
Variables have pretty much replaced the need for the earlier function
I created new column and used previousday dax
It worked well. Please correct me if I am wrong
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.
Projects section.
@@learnwidgiggs okay! Thankyou for your esponse.
Facing trouble in DAX FORMULA in custom column how to solve
What if I'd column is not there..?plz suggest
Not getting calls for Power Bi developer or Data Analyst. Please give me some suggestions.
No jobs
Are you fresher or experienced ?
In pbirs opening folders and paginated reports but datasource manage data base page showing as something went wrong and please try again later
thanks! 🙌
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
Hi sir, what is unit test in powerbi and thanks for making the videos.
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 ....
@@SatheeshPK-jg1dg thanks for sharing the alternate solution.
@@learnwidgiggs fan of ur work Shashank
Nice explanation
@@owncreatechannel6426 thank you 🙏
Go To 1:27
Very well explained, Sir..
@@amolgaikwad6977 glad you liked it 🙏
Offset we can use
Can it be done without ID column?, if yes, can you please explain?
@@mahendra951I'm not sure about it.
We can use rankx to create a id type column and use the same logic. This way it can be done without id column.
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 ....
@@SatheeshPK-jg1dg offset one will throw an error of " a circular dependency was detected"
Hi Shashank......
If file size is greater than 1gb then how can we import data?
Will u plz...give solution?
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.
Result = LOOKUPVALUE(Table' [Transaction Date], 'Table' [ID], 'Table' [ID]-1)