12.6 How to Calculated Age in Power BI (Power Query) | Power BI Tutorial for Beginners

preview_player
Показать описание
#pavanlalwani #powerquery #textfunction #dataanalytics

Welcome to this tutorial on how to calculate age in Power Query! In just two button clicks, you can accurately determine the age of individuals based on their date of birth. In this video, I will guide you through the process step-by-step.

To begin, make sure you have your data loaded. If you need assistance with loading the data, refer to the previous or first video in this series. The data we will be working with includes a column for the names of Indian cricket players and a corresponding column for their respective dates of birth.

Once your data is ready, select the column containing the dates of birth. Then, navigate to the "Add Column" tab and simply click on the "Age" button. This action will create a new column displaying the age of each player in terms of the number of days. For example, Ajinkya Rahane is currently 11,688 days old, while Ajit Agarkar is 15,525 days old.

Now, let's convert the age from days to years. In order to do this, select the age column and go to the "Duration" section. From there, choose the "Total Years" option. This will calculate the age based on years. For instance, Ajinkya Rahane is 32 years old.

If you prefer whole numbers instead of decimals, you can easily achieve this by selecting the decimal option (1.2) and choosing the "Whole Number" format. This will round off the age value. You can now see the ages of all the players displayed in whole numbers.

Once you have obtained the desired results, you may wish to clean up your data. To remove the age column, simply right-click on it and select the "Remove" option. If you want to add a suffix to the age column, go to the "Transform" tab and choose the "Add Suffix" format. This will allow you to customize the appearance of the age information.

Remember, the age calculations are connected to your system date, so the age will automatically update every year without any manual intervention. This makes it incredibly convenient!

I hope this tutorial has helped you understand how to calculate age in Power Query using just two button clicks. If you have any questions, feel free to leave them in the comments section below. Don't forget to like and subscribe for more informative videos!
---------------------------------------------------------
💼 Invest in your future with our Power BI 2023 NEW Course at an incredible 50% discount:

📚 200+ MCQs to test your knowledge.
📝 20+ Assignments for hands-on practice.
🔍 11+ Case Studies for real-world insights.
💼 5+ Industry Projects to build your portfolio.
🎓 Course Completion Certificate for your resume.
💡 Tips & Tricks to boost your skills.
🔎 5+ Industry Datasets for practical learning.

Join thousands of professionals who have transformed their careers. Enroll now at 50% off!
You can also explore our Power BI DAX 2023 course and get a 360º understanding of DAX

Invest in yourself. Become a Power BI expert. The future is yours! 💼💪"

#datacleaning #businessintelligence #powerbi
---------------------------------------------------------
Timestamps:
00:03 How to Load Data in Power Query 📥
00:30 Calculating Age in Power Query 📊
00:55 Converting Age to Years 📅
01:23 Rounding Age to Whole Numbers 🎯
01:38 Removing Age Column ❌
02:06 Adding Suffix to Age Column 📋
02:30 System Date Auto Update ⏰
Рекомендации по теме
Комментарии
Автор

🚀 Calling all data enthusiasts! 💼🌟

👉 Discover the power of Power BI with our Specialization course at a jaw-dropping 50% off!


💥 Level up your analytical game and supercharge your career with the Power BI DAX course. 💯💼

PavanLalwani
Автор

Hi Sir, can u tell how can we calculate the upcoming birthdays in current week and next week.

sharatbabu
Автор

All the functions in section 12 are simple but very useful. In age calculation, can we calculate age from a particular date not from system date.

SonuPandey-mefs
Автор

Why we do not have MS Dhoni's name in this list?

rajabhishek
Автор

Ageing bracket <30 snd >30
How to do?

krishnachoubey
Автор

how to calculate actual year with month ?.... (for example deepak age is 28 years 5 month)

akhileshdeshmukh
Автор

Sir plz make some videos on Dax function

VirendraSingh-gylr
Автор

Your answers are wrong. You can't just use whole numbers, the values should be ROUND DOWN for accurate age!

gauravguliani