Posts
Posts
Posts
Here
are some key use cases:
These functions can help you derive insights more efficiently. Start exploring now! 🌟
SQL Windows Functions can be game-changers in your data analysis toolkit. Here
are some key use cases:
These functions can help you derive insights more efficiently. Start exploring now! 🌟
Power BI is a powerful tool for data visualization and business intelligence, and DAX
(Data Analysis Expressions) is its formula language that helps you create custom
calculations. Understanding DAX can greatly enhance your ability to perform
complex data analysis in Power BI. Here are some useful DAX tricks that can
optimize your reports and dashboards:
- **SUMX**: Iterates over a table to evaluate an expression and then adds up the
results. Useful for row-wise calculations. For example, `SUMX(Sales, Sales[Quantity]
* Sales[Price])`.
- Similar to SUM and SUMX, but for calculating averages. Use `AVERAGE(Column)`
for simple averages and `AVERAGEX(Table, Expression)` for more complex
scenarios.
3. **CALCULATE**:
- Modifies the filter context of an expression. It’s crucial for creating measures that
depend on certain conditions. For instance, `CALCULATE(SUM(Sales[Amount]), Year
= 2023)` filters the sales to show only those from 2023.
4. **FILTER**:
- Returns a table that has been filtered down to include only specific rows. For
example, `FILTER(Sales, Sales[Amount] > 1000)` returns sales where the amount is
greater than 1000.
```DAX
RETURN TotalSales / 2
```
- The `ALL` function removes all filters from a table or column, while `ALLEXCEPT`
removes all filters except those specified. This is useful for calculating things like
percentages of totals.
4. **Dynamic Ranking**:
```DAX
```
```DAX
SWITCH(
TRUE(),
Low
```
- Relationships in Power BI should remain simple; use DAX for complex filtering
logic to maintain report performance.
1. **Conditional Formatting**:
- Use DAX measures to create dynamic conditional formatting. This can highlight
important data points based on calculated logic.
- Create measures for dynamic titles and tooltips that change based on the context.
Example:
```DAX
```
- Use bookmarks and the selection pane to create interactive reports that respond
to user inputs without needing complex DAX.
By leveraging these DAX tricks, you can enhance your data analysis capabilities in
Power BI, create more insightful reports, and improve the overall performance of
your dashboards. Remember, the key to mastering DAX is practice and
experimentation, so keep exploring and testing different approaches to find what
works best for your specific data scenarios.
Working with dates in databases is a crucial task that often requires specific
functions and techniques to manipulate and analyze temporal data. This guide will
explore date function tricks across the four major database management systems:
MySQL, PostgreSQL, SQL Server, and Oracle.
2. **Date Arithmetic**
3. **Date Extraction**
- `CURRENT_TIMESTAMP`: Returns the current date and time with time zone.
2. **Date Arithmetic**
3. **Date Extraction**
4. **Date Formatting**
- `SYSDATETIME()`: Returns the current date and time with more precision.
2. **Date Arithmetic**
3. **Date Extraction**
4. **Date Formatting**
- `SYSTIMESTAMP`: Returns the current date and time with time zone.
2. **Date Arithmetic**
3. **Date Extraction**
4. **Date Formatting**
- **Handling Time Zones:** Consider the time zone settings in your database,
especially if your application serves multiple regions.
- **Leap Years and Daylight Saving Time:** Be aware of special date considerations
like leap years and daylight saving time adjustments.
- **Indexing Date Columns:** Index date columns when performing frequent queries
to improve performance.
- **Date Ranges:** Use BETWEEN to filter data within a specific date range.
--
Practicing at least one question a day can help you crack any Data Engineering SQL
interview.
- LeetCode - https://lnkd.in/gkCpv7NA
- HackerRank - https://lnkd.in/gnFS4frz
- SQLZoo - https://sqlzoo.net/
- Mode Analytics - https://lnkd.in/gRPrQrf5
- SQL Bolt - https://sqlbolt.com/
- GeeksforGeeks - https://lnkd.in/ggYbizNB
- LearnSQL - https://www.learnsql.com/
- LearnMode - https://lnkd.in/gQYCkwS2
- Strata Scratch - https://lnkd.in/gYtZQY53
- DataLemur - https://datalemur.com/
- SQL Fiddle - http://sqlfiddle.com/
- DB-Fiddle - https://www.db-fiddle.com/
- SQL Exercises - https://lnkd.in/d89TewuQ
- SQL Practice Set - https://lnkd.in/ddn7hfeu
- DataCamp - https://lnkd.in/dUyvbSwC
- Kaggle - https://lnkd.in/dn83kbwv
- Mode SQL Tutorial - https://lnkd.in/d53iPD-U
====
- SQL Murder Mystery - https://lnkd.in/dtVqDV-g
===
I’m excited to share that I’ve successfully completed the Power BI Data Analytics
Bootcamp 2.0 by Codebasics.
I wanted to take my time to truly digest everything I learned before sharing this
achievement.
Let me be real—diving into data analytics while being a full-time mom has been
one of the hardest things I’ve done.
Trying to understand DAX formulas and build dashboards between meal preps,
bedtime routines, and school runs felt nearly impossible at times. But I kept
pushing, reminding myself why I started this journey.
It wasn’t easy, but every challenge has made me stronger and more determined.
This course was an eye-opener, helping me transform raw data into actionable
insights and empowering me to tackle real-world data challenges confidently.
Here’s a breakdown of what I learned and how it’s shaping my data analytics
journey:
📚 Key Learning Areas Covered:
🔹 Power BI Basics:
An introduction to Power BI, setting the foundation for data exploration and
validation.
Gained expertise in gathering and validating data from various sources to ensure
accuracy.
Cleaning and preparing data for analysis—an essential step in the data pipeline.
Developing comprehensive views for key business domains and translating them
into meaningful insights.
Understanding how to deploy dashboards and reports for collaboration and real-
time updates.
I’m incredibly grateful to Dhaval Patel Sir, Hemanand Vadivel Sir, and the entire
Codebasics Bootcamp team for their guidance and expertise.
The real-world projects, exercises, and in-depth explanations have been invaluable
in helping me grow as a data analyst.
I’m excited to share my project presentation soon, along with the key learnings
that came from this journey. Stay tuned! 😉
1️⃣ How Power Query Will Change the Way You Use Excel by Leila Gharani
https://lnkd.in/ehYiDnkP
https://lnkd.in/eDrg3Eck
https://lnkd.in/esnHzS35
5️⃣ 10 Power Query tips EVERY user should know by Mark Proctor
https://lnkd.in/ePHDhX2V
https://lnkd.in/e5c_rbjA
https://lnkd.in/egra3qhS
8️⃣ Get Data From SharePoint or OneDrive with Power Query by Mynda Treacy
https://lnkd.in/edSaWj8m
Shoutout to Purna Duggirala who I wrote "Dashboards for Excel" with, where he
goes in depth about Power Query
The folks in this list are some of the smartest Excel nerds I know 🤓
Don’t put off learning Power Query any longer and get started with these tutorials