Тёмный

Counting consecutive days with sales - Unplugged #47 

SQLBI
Подписаться 110 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@obazeeghosa
@obazeeghosa Год назад
This follow-up to Unplug #18 is even greater in execution and delivery. Simply Excellent!!!
@aleferresbruyn
@aleferresbruyn Год назад
The way you unbundled a quite complicated measure in a simple way is superlative.
@timolff9239
@timolff9239 Год назад
''the algorithm is quite simple, but it's worth it to see how it works!" ;D Thanks for this demo!
@beckyjohnson7505
@beckyjohnson7505 Год назад
Hi Alberto - This has been very helpful in getting me to a certain point. However, I would like to get your take on a next step. I'm trying to calculate the consecutive days (similar to the days with sales) between the last day an employee didn't work and the next day an employee didn't work. The desired outcome would be for a count of consecutive days between those two "blank" days (i.e. 1, 2, 3, 4, 5, etc.). This will then be used to determine how many times a colleague worked more than a certain number of days. I have tried using / modifying the code used in this video, but have had limited luck. There is an index, employee id, date, date worked and count of day worked in the dataset. I'm happy to share a test .pbix if you have any ideas. Thanks for all your help. I find your videos very informative!
@mabl4367
@mabl4367 Год назад
Hmmm. I have two objections to this measure. 1. The VAR AllDates =ALL('Date'[Date]) should be ALLSELECTED('Date'[Date]) right? If not it will not take into account any dates filtered out by the user. 2. The calculation for the number of days without holes is preformed by subtracting dates. This to will not take into account any dates the user may wish to exclude from the calculation. The number of days without holes should be done by COUNTROWS if you as me :)
@tayeebsyed2062
@tayeebsyed2062 Год назад
Thank you so much for the insightful video. Suppose, I want to calculate the consecutive working days for staff & report on each individual staff to ensure they don’t run into fatigue. How to make the above algorithm concept to work in such situation? Field are: Staff Name, Work date, No. of Hours worked.
@stephenreade1623
@stephenreade1623 Год назад
I am also trying to find a solution to this problem. Does anyone know how I can display the current consecutive days worked for all employees?
@simonq2770
@simonq2770 Год назад
Superb video just amazed with the dax. could we please have one video on sales projected for the month based on sales days and sales run rate. Many thanks
@ed2921
@ed2921 Год назад
You run out superlatives watching Sqlbi, another brilliant video gents
@stevenwang4064
@stevenwang4064 Год назад
Hi Alberto, I have a question. Assuming the VERY FIRST date in your Date table, e.g., 2017-01-01, has sales, what will be the NearestHole value when the date in the report is also 2017-01-01? It appears under this situation, NearestHole will return blank. Therefore, Results= INT ( "2017-01-01" - blank ) . Right? So I guess we should add a IF condition to include such condition. Also, how about All dates in Date table have sales, which means we have no hole at all? DatesWithNoSales will be an empty table. NearestHole will return Blank. Right? Thank you.
@mikeycbd
@mikeycbd 8 месяцев назад
Hi, would it be possible please to modify this code to look at all dates and dates from another table where people have taken personal leave so we count episodes of leave instead of episodes of Sales? (for Calculating Bradford Scores)
@DailyVibz
@DailyVibz Год назад
From the Result , how can we remove public holidays and weekends if we want to ?
@majedalhussan3082
@majedalhussan3082 Год назад
brilliant as always
@allmazd
@allmazd Год назад
Hello Alberto. Sorry for my question not related to the topic, but I want to know your opinion, in this modern world and dax domination should I also start studying another concept as mdx and cubes or it will not have a bright future? I ask you because I know that you are familiar with the topic, thank you very much for your answer in advance.
@SQLBI
@SQLBI Год назад
MDX did not evolve in the last few years. It's still used by Excel also when querying Tabular models, or by other tools that use MDX as a query language. However, its adoption is certainly not raising today.
@mariakatsanevas8300
@mariakatsanevas8300 Год назад
How would this work for consecutive month ends. Not a text month column but the month end 1/31/2013
@gauripande-jn4bw
@gauripande-jn4bw 4 месяца назад
I WANT TO SHOW CONSECUTIVE INCREASE IN 5 DAY OR 10 DAY IN POWER BI HOW CAN I DO THESE
@vladyslavgovorukha9229
@vladyslavgovorukha9229 Год назад
Brilliant!
@montorovegan
@montorovegan Год назад
Brilliant
@jugarGV
@jugarGV Год назад
Amazing!
@samuelkiarie325
@samuelkiarie325 Год назад
Hello SQLBI Have you listed any of your courses in udemy, share the link
@SQLBI
@SQLBI Год назад
You can find our free and commercial courses here: www.sqlbi.com/training
@zxccxz164
@zxccxz164 9 месяцев назад
The file on your web site links to wrong file. Can u please fix
@SQLBI
@SQLBI 8 месяцев назад
The file seems correct.
@zxccxz164
@zxccxz164 8 месяцев назад
@@SQLBI it is not. you can even just read the title Consecutive-days-with-no-sales.zip (3.81 MB) NO SALES. this is a different video and blog on consecutive days WITH SALES. It is not the same file
@SQLBI
@SQLBI 8 месяцев назад
Oh thank you! It was a wrong link that we now fixed - there was a coincidence with the name of another unplugged video with a similar name. Please, let us know if it works well now!
Далее
Consecutive days with no sales - Unplugged #18
27:35
Просмотров 17 тыс.
Row Context in DAX
20:42
Просмотров 100 тыс.
Return Working Days in Power BI using DAX
16:28
Просмотров 8 тыс.
Differences between GROUPBY and SUMMARIZE
28:30
Просмотров 39 тыс.
Using ALLEXCEPT vs ALL VALUES
13:35
Просмотров 56 тыс.
Calculate Growth From Previous Non Consecutive Date
8:52
PowerBI -  How to count duplicate values
6:57
Просмотров 34 тыс.
USERELATIONSHIP in calculated columns
26:05
Просмотров 16 тыс.