Deloitte: Power BI Interview | 2 Scenario based questions

Deloitte: Power BI Interview | 2 Scenario based questions

LearnWidGiggs

1 месяц назад

11,980 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@bankimdas9517
@bankimdas9517 - 05.05.2025 16:31

Thanks a lot sir for the video🙏
Please bring more videos frequently.

Ответить
@Harsh_uncut
@Harsh_uncut - 05.05.2025 16:46

Thank You Sir for Sharing 👌❤️

Ответить
@prabhassigilipelli8465
@prabhassigilipelli8465 - 05.05.2025 16:49

Current_MTD_Excluding_MaxDate =
CALCULATE(
TOTALMTD(
SUM('Sample Data File - Deloitte May xlsx - Sheet1'[Revenue]),
'Sample Data File - Deloitte May xlsx - Sheet1'[Date]
),
'Sample Data File - Deloitte May xlsx - Sheet1'[Date] <
MAX('Sample Data File - Deloitte May xlsx - Sheet1'[Date])
)
what about this version

Ответить
@AkankshaSingh-m6c
@AkankshaSingh-m6c - 05.05.2025 17:16

Thanks for sharing👍🏻

Ответить
@EMRANKhan-q8x
@EMRANKhan-q8x - 05.05.2025 17:43

Nice video as always

Ответить
@Thrive_with_Akarshan
@Thrive_with_Akarshan - 05.05.2025 18:11

Audio in previous videos is Sound. Audio in the present video is Noise.

Ответить
@Sandeepsingh_unique
@Sandeepsingh_unique - 05.05.2025 18:45

💯💯💥

Ответить
@sky4223
@sky4223 - 05.05.2025 19:01

Is power apps compulsory for job along with power bi

Ответить
@sakshinaik05
@sakshinaik05 - 05.05.2025 19:11

Plz post videos frequently

Ответить
@vandanapatil8182
@vandanapatil8182 - 05.05.2025 19:35

Sir pls purchase a Mike
Sound quality is not up to the Mark

Ответить
@nitishchowdary123
@nitishchowdary123 - 05.05.2025 19:49

We can use Mtd function right ?

Ответить
@BeAPowerBIPro
@BeAPowerBIPro - 05.05.2025 19:57

For scenario 1 instead of creating a new column use of Table.TransformColumns with Text. Select function will be more efficient given that the existing column will no longer be used.

Ответить
@Yogendrasingh-rt9mj
@Yogendrasingh-rt9mj - 05.05.2025 20:06

👍👍

Ответить
@biswadeepsahoo
@biswadeepsahoo - 05.05.2025 20:15

2nd Question easy dax mesure is
2 days rev = CALCULATE(SUM(Revenue[Revenue]),DATESINPERIOD(Revenue[Date],MAX(Revenue[Date])-1,-2,DAY))

Ответить
@BeAPowerBIPro
@BeAPowerBIPro - 05.05.2025 20:37

For the second scenario this will work:

MtdValue=CALCULATE (
TOTALMTD ( SUM(Fact[Revenue] ),
'DateTable'[Date] ),
'DateTable'[Date] < TODAY ()
)

Ответить
@sachindubey4315
@sachindubey4315 - 05.05.2025 21:19

MtdValue=CALCULATE (
SUM(Fact[Revenue] ),
Datesmtd('DateTable'[Date] ),
'DateTable'[Date] < TODAY () )

Ответить
@surajraju5384
@surajraju5384 - 06.05.2025 08:16

for first scenerio , use column by example where you will get only the numbers of the solution

Ответить
@karansonawane2392
@karansonawane2392 - 06.05.2025 08:41

Very good scenarios sir, can we please start a series with this DAX scenarios?

Ответить
@JeevanC-l3k
@JeevanC-l3k - 06.05.2025 09:03

This is also the other way
Total =
CALCULATE(
SUM(Data[Revenue]),
DATESINPERIOD(Data[Date],MAX(Data[Date])-1,-3,DAY)
)

Ответить
@dwaipayansaha4443
@dwaipayansaha4443 - 06.05.2025 09:29

My approach with simple CALCULATE :
Revenue_total = CALCULATE(SUM('Sheet1 (2)'[Revenue]),'Sheet1 (2)'[Date]<MAX('Sheet1 (2)'[Date]),MONTH('Sheet1 (2)'[Date])=MONTH(NOW()))

Ответить
@SandipanSarkar-c8v
@SandipanSarkar-c8v - 06.05.2025 10:39

Finished watching

Ответить
@madhusudhanreddyt2838
@madhusudhanreddyt2838 - 06.05.2025 11:01

for the second question, we can achieve the same output using the below dax code,

SalesMTD_Exclude_CurrentMonth =
VAR _startDate = EOMONTH(TODAY(), -1) + 1
VAR _endDate = TODAY() - 1
VAR _range = DATESBETWEEN('Fact'[Date], _startDate, _endDate)
RETURN
CALCULATE(SUM('Fact'[Revenue]), _range)

for the first question, we can use M Script and create a new custom column and add the below code..


Text.Select([ID], {"0".."9"})

let me know your feedback...

thanks for the video...really useful

Ответить
@Life_steps_official
@Life_steps_official - 06.05.2025 11:27

Radhe Radhe 🙏

Ответить
@kommabalaji4845
@kommabalaji4845 - 06.05.2025 16:46

2nd scenario alternative code

amount till march 2nd = CALCULATE(
sum(Sheet1[Revenue]),
DATESBETWEEN(Sheet1[Date], Date(year(today()), month(TODAY()),1) , TODAY()-4)
)

Ответить
@MuhammadTouseefrahimkhan
@MuhammadTouseefrahimkhan - 06.05.2025 16:52

Hi sir,
Thanks for sharing such informative video. I have solved the 2nd question using below measure. It worked fine. What do u say is there anything to change or this will work fine.

Total revenue = CALCULATE(SUM(Sheet1[Revenue]),
FILTER(Sheet1,
Sheet1[Date].[Month] = SELECTEDVALUE(Sheet1[Date].[Month])&& Sheet1[Date] < TODAY()))

Ответить
@geetasingh2701
@geetasingh2701 - 06.05.2025 17:51

👍🏻👍🏻

Ответить
@ritiktripathi8721
@ritiktripathi8721 - 06.05.2025 18:51

Mic to thik kar lo

Ответить
@sahasransupanda8169
@sahasransupanda8169 - 06.05.2025 19:48

Dax for 2nd Scenario:
total_revenue =
var a=MONTH(TODAY())
RETURN
CALCULATE(SUM('Sheet1 (2)'[Revenue]),FILTER('Sheet1 (2)',MONTH('Sheet1 (2)'[Date])=a && 'Sheet1 (2)'[Date]<TODAY()))

Ответить
@asishnayak108
@asishnayak108 - 07.05.2025 14:12

Final_Total_MTD =
TOTALMTD(SUM(fact[Revenue]),fact[Date]) -
calculate(SUM(fact[Revenue]),FILTER(fact,fact[Date] = TODAY()))

Ответить
@depup-c4l
@depup-c4l - 07.05.2025 14:50

for the second question we can use totalMTD directly right, since we have filter option within totalmtd function. we can directly use like : i have tried with different names

totalmtd = TOTALMTD(
SUM(Revenue[Revenue]),
Revenue[Date],
FILTER(
Revenue,
Revenue[Date] < TODAY()
)
)

Ответить
@Himanshu22ify
@Himanshu22ify - 08.05.2025 09:06

@learnwidgiggs why cant we use below DAX query this will also give same results. Could you please check
Total MTD = TOTALMTD(sum(Sheet1[Revenue]),Sheet1[Date],Sheet1[Date] < TODAY())

Ответить
@ashishkushwaha1
@ashishkushwaha1 - 10.05.2025 06:58

Hello Sir,
After being unemployed for 4 years, finally I got my first job as Power BI Developer for Nokia by gnap services.

All' credit goes to your free Yt interview and questions videos, really they are alot to boost confidence for the interview.

Again big thanks 🙏🙏

Ответить
@ruphamatiram3827
@ruphamatiram3827 - 11.05.2025 10:27

Thanks for the video sir. I have a small doubt. Can we not use startofmonth function to calculate May1st date instead of EO?

Ответить
@Mr.JD-hq5uw
@Mr.JD-hq5uw - 11.05.2025 15:45

Total_MTD = TOTALMTD(SUM(Deloitte[Revenue]),Deloitte[Date],FILTER(Deloitte,Deloitte[Date]<TODAY()))

Ответить
@coolcalm582
@coolcalm582 - 11.05.2025 18:16

your videos are really very helpful. just wanted to ask do companies provide work from home or hybrid work type for data analysts as well like IT Professionals are getting nowadays???

Ответить
@swapnakonda9195
@swapnakonda9195 - 12.05.2025 13:01

finding current month sales except todays sales , i got answer by this function [ currentmonsal = TOTALMTD(SUM('Sheet1 (2)'[Revenue]), 'Sheet1 (2)'[Date], 'Sheet1 (2)'[Date]<>TODAY())]

Ответить
@Anilkapkoti-l3m5b
@Anilkapkoti-l3m5b - 14.05.2025 14:12

More Robust DAX

Measure =
VAR mxdate =
CALCULATE ( MAX ( test[Date] ), ALL ( test ) )
VAR mxmonth =
MONTH ( mxdate )
VAR mxyear =
YEAR ( mxdate )
RETURN
CALCULATE (
SUM ( test[Revenue] ),
KEEPFILTERS (
test[Date] < mxdate
&& MONTH ( test[Date] ) = mxmonth
&& YEAR ( test[Date] ) = mxyear
)
)

Ответить
@pushpapatil6824
@pushpapatil6824 - 17.05.2025 18:16

Thanks for your advanced scenario based videos. I tried in the same method of removing unwanted characters form the Id Column. It is not working for me. Took the same data as u took in your video. Pl. help me.

Ответить
@himayeldo
@himayeldo - 18.05.2025 16:48

Hello Shashank sir,
As usual thanks for sharing such insightfull video again.

One more thing I wanted to let you know that because of your videos helped me to crack and I got selected into Accenture, it's been 3.5 months now but because of your video especially dax videos helped a lot for preparing interviews.

Keep sharing and posting your video. It is a daily reminder to learn something new always❤

Ответить
@ThirumalaRaoAvula
@ThirumalaRaoAvula - 20.05.2025 14:27

This is working
Total MTD = TOTALMTD(SUM('Fact'[Revenue]),'Fact'[Date]<TODAY())

Ответить
@mubashirshaikh2538
@mubashirshaikh2538 - 23.05.2025 19:04

Simple code that we can use is
MTD with Today -1 = CALCULATE(SUM(tblRevenue[revenue]),DATESMTD(tblRevenue[date]),tblRevenue[date] < TODAY())

Ответить
@madhuk664
@madhuk664 - 08.06.2025 17:12

last_two_days =

VAR L1 = TODAY() -1
var L2 = TODAY() -2
return
CALCULATE( SUM(Last_two_day_sales[Amt]) , DATESBETWEEN(Last_two_day_sales[Date],L2,L1))

Ответить