
Say Goodbye to Null Columns: The Power Query Hack You Need
Excel Off The Grid takes you through a dynamic solution for removing null columns that adapts to the ever-changing nature of your datasets. By using tools like the `Table.Profile` function, you can identify and filter out irrelevant columns in a way that's both automated and scalable. Whether you're working with a single workbook or managing multiple datasets, this method ensures your data cleaning process is not only faster but also smarter. And if you're looking to take it a step further, we'll explore how to create a reusable custom function that simplifies repetitive tasks. Imagine the possibilities when your data workflows are streamlined, consistent, and free of clutter. Dynamic Null Column Removal Why Opt for a Dynamic Approach?
When working with datasets that evolve over time, hardcoding column names can create unnecessary limitations and increase maintenance efforts. Power Query's dynamic tools, such as the `Table.Profile` function, provide a flexible and automated solution for analyzing and cleaning data. By dynamically identifying and removing null columns, you ensure that only meaningful data is retained, regardless of how your dataset changes. This approach not only saves time but also enhances the scalability of your data workflows. Steps to Dynamically Remove Null Columns
Removing null columns in Power Query is a straightforward and systematic process. Follow these steps to clean your dataset dynamically: Load your dataset: Begin by importing your data into Power Query to initiate the cleaning process.
Begin by importing your data into Power Query to initiate the cleaning process. Remove unnecessary steps: Delete hardcoded steps, such as 'Change Type,' to maintain flexibility and avoid static dependencies in your query.
Delete hardcoded steps, such as 'Change Type,' to maintain flexibility and avoid static dependencies in your query. Generate a table summary: Use the `Table.Profile` function to create a summary of your dataset. This summary provides key metrics, including column counts and null counts for each column.
Use the `Table.Profile` function to create a summary of your dataset. This summary provides key metrics, including column counts and null counts for each column. Identify columns with meaningful data: Add a custom column to the summary table to compare the `Count` and `Null Count` values. This step helps pinpoint columns that contain actual data.
Add a custom column to the summary table to compare the `Count` and `Null Count` values. This step helps pinpoint columns that contain actual data. Filter out null columns: Apply a filter to exclude columns where the `Count` equals the `Null Count`, effectively isolating columns with meaningful data.
Apply a filter to exclude columns where the `Count` equals the `Null Count`, effectively isolating columns with meaningful data. Apply the filtered results: Use the filtered summary to dynamically remove null columns from your original dataset, making sure only relevant data remains.
This method ensures your data cleaning process is efficient, adaptable, and scalable, even for complex datasets with varying structures. Power Query : Instantly Remove All Null Columns
Watch this video on YouTube.
Here are more detailed guides and articles that you may find helpful on Power Query. Creating a Custom Function for Reusability
To further streamline your workflow, you can convert this process into a reusable custom function. This allows you to apply the null column removal process across multiple datasets without recreating the query each time. Here's how to create a custom function: Duplicate your query: Start by copying the query you created for removing null columns.
Start by copying the query you created for removing null columns. Access the Advanced Editor: Open the Advanced Editor in Power Query to modify the query code.
Open the Advanced Editor in Power Query to modify the query code. Define a function: Replace static references in the query with a dynamic table input parameter. This step generalizes the query, making it adaptable to different datasets.
Replace static references in the query with a dynamic table input parameter. This step generalizes the query, making it adaptable to different datasets. Save the function: Assign a name to the function and save it. This makes the function accessible for use across various datasets or workbooks.
By creating a custom function, you can significantly reduce the time and effort required for repetitive data cleaning tasks, while making sure consistency and accuracy. Advantages of a Reusable and Dynamic Process
Implementing a reusable custom function for removing null columns offers several key benefits: Time efficiency: Save time by applying the function to multiple datasets without needing to recreate the query for each one.
Save time by applying the function to multiple datasets without needing to recreate the query for each one. Reduced errors: Minimize the risk of mistakes that can occur during manual data cleaning processes.
Minimize the risk of mistakes that can occur during manual data cleaning processes. Scalability: Adapt the function to datasets of varying sizes and structures, making sure it remains effective as your data grows or changes.
Adapt the function to datasets of varying sizes and structures, making sure it remains effective as your data grows or changes. Consistency: Maintain a standardized approach to data cleaning, which is particularly useful when working with large teams or multiple projects.
By using Power Query's dynamic capabilities and creating reusable functions, you can ensure your data cleaning workflows remain robust, efficient, and adaptable to evolving requirements. Streamlining Data Cleaning with Power Query
Dynamically removing null columns in Power Query is a practical and effective way to streamline your data cleaning process. By using the `Table.Profile` function and creating a reusable custom function, you can handle datasets of any size or complexity with ease. This approach not only saves time but also ensures your data remains clean, meaningful, and ready for analysis. Whether you're managing a single dataset or working across multiple workbooks, this method provides a reliable solution for maintaining high-quality data.
Media Credit: Excel Off The Grid Filed Under: Guides, Top News
Latest Geeky Gadgets Deals
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.
Hashtags

Try Our AI Features
Explore what Daily8 AI can do for you:
Comments
No comments yet...
Related Articles


Geeky Gadgets
6 hours ago
- Geeky Gadgets
iPhone 17 Air BATTERY Leak - Smallest EVER in a Flagship iPhone
The iPhone 17 Air emerges as Apple's thinnest and lightest flagship smartphone to date, boasting an impressive 5.5 mm profile and a hybrid aluminum-titanium build. This design achievement underscores Apple's commitment to pushing the boundaries of smartphone engineering. However, the pursuit of sleekness introduces compromises that may affect its practicality for everyday users. From a reduced battery capacity to a simplified camera system, the iPhone 17 Air challenges the balance between innovative design and essential functionality. The video below from SaranByte gives us more details about the new iPhone 17 Air. Watch this video on YouTube. Battery Life: Balancing Innovation and Practicality The iPhone 17 Air is equipped with a 2,800 mAh battery, marking the smallest capacity ever featured in a flagship iPhone. This represents a 20-30% reduction compared to competitors, raising concerns about its ability to sustain a full day of use. To address this, Apple integrates adaptive power modes in iOS 26, designed to optimize energy consumption based on user habits. These modes aim to extend battery life, but early reports indicate that only 60-70% of users may achieve full-day usage under typical conditions. For those requiring extended power, Apple is rumored to offer an optional battery case, which could serve as a practical solution for heavy users. The trade-off between thinness and battery capacity highlights a critical question: how much are users willing to sacrifice for a slimmer device? While the adaptive power modes offer some relief, the smaller battery may not meet the needs of users who rely heavily on their smartphones throughout the day. Design and Build: Aesthetic Excellence Meets Practical Limitations Weighing just 145 grams, the iPhone 17 Air is one of the lightest smartphones in its category. Its ultra-thin design, combined with a hybrid aluminum-titanium construction, ensures a balance between durability and portability. The device is available in four premium colors—black, white, light gold, and light blue—catering to users who value aesthetics and ease of handling. However, the focus on achieving a slim profile introduces notable compromises. The smaller battery is one consequence, but the absence of stereo speakers is another significant drawback. The mono speaker setup, which relies on the earpiece for audio output, may fall short for users accustomed to immersive sound quality. While the design is undeniably sleek and modern, these limitations may impact the overall user experience, particularly for those who prioritize functionality over form. Display and Camera: Striking Visuals with Limited Flexibility The iPhone 17 Air features a 6.6-inch display with a 120 Hz ProMotion refresh rate, delivering smooth and vibrant visuals ideal for gaming, video playback, and everyday scrolling. The display's quality is a standout feature, offering an immersive viewing experience that aligns with Apple's reputation for excellence in screen technology. On the other hand, the camera system adopts a minimalist approach. The single 40 MP rear camera delivers high-quality images but lacks the versatility of ultrawide and telephoto lenses found in competing flagship devices. This limitation may disappoint photography enthusiasts who rely on multiple lenses for creative flexibility. The front-facing 24 MP camera enhances selfies and video calls, maintaining Apple's focus on delivering strong performance in everyday use cases. However, the absence of additional rear lenses underscores the trade-offs made to achieve the device's ultra-thin design. Performance and Connectivity: Advanced Hardware with Regional Challenges Powered by the A19 chip and 12 GB of RAM, the iPhone 17 Air delivers exceptional performance, handling multitasking and demanding applications with ease. To manage heat within its ultra-thin frame, Apple employs a copper heat spreader, making sure consistent performance during extended use. This innovation underscores Apple's ability to integrate advanced hardware into a compact design. However, the device's eSIM-only configuration eliminates support for physical SIM cards, which could pose challenges in regions where eSIM adoption remains limited. This shift aligns with Apple's broader push toward a fully digital ecosystem but may inconvenience users in areas with slower technological adoption. Additionally, the mono speaker setup, while functional, does not match the stereo sound quality expected in modern flagship smartphones. These factors may influence the device's appeal, particularly for users who prioritize connectivity and audio performance. Target Audience: A Device for Design Enthusiasts The iPhone 17 Air is tailored for users who prioritize portability, aesthetics, and lightweight design. Its slim profile and premium materials make it an attractive choice for those seeking a stylish, compact device that stands out in a crowded market. The device is particularly well-suited for individuals who value design innovation and are willing to accept certain trade-offs in functionality. However, the compromises in battery life, camera versatility, and audio quality may deter power users or those who rely heavily on their smartphones for productivity and multimedia consumption. The iPhone 17 Air appeals to a niche audience that values form over function, making it a compelling option for design enthusiasts but a less practical choice for users with demanding needs. Balancing Innovation and User Needs The iPhone 17 Air represents a bold step in Apple's design evolution, emphasizing portability and aesthetics over certain core features. Its ultra-thin profile and lightweight construction showcase Apple's ability to innovate, but these advancements come with trade-offs that may not align with the needs of all users. The device's reduced battery capacity, simplified camera system, and mono audio setup highlight the challenges of balancing innovative design with practical functionality. As Apple continues to push the boundaries of smartphone engineering, the iPhone 17 Air serves as a testament to the complexities of innovation. While it offers a glimpse into the future of sleek, lightweight devices, it also underscores the importance of addressing diverse user needs. For those who prioritize design and portability, the iPhone 17 Air is a compelling choice. For others, the compromises may outweigh the benefits, making it essential to carefully consider individual priorities when evaluating this new device. Discover other guides from our vast content that could be of interest on iPhone 17 Air. Source & Image Credit: SaranByte Filed Under: Apple, Apple iPhone, Top News Latest Geeky Gadgets Deals Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.


Geeky Gadgets
7 hours ago
- Geeky Gadgets
Google Gemini AI Prompts to Learn Faster : Stop Studying the Hard Way
What if learning could be as unique as your fingerprint, tailored precisely to your interests, pace, and style? With the rise of AI-powered tools like Google Gemini, this vision is no longer a distant dream but an achievable reality. Imagine having a personal tutor who not only adapts to your learning preferences but also evolves with your needs, offering step-by-step guidance or visual aids on demand. The secret to unlocking this potential lies in one critical skill: effective prompting. By mastering how to communicate with Gemini, you can transform it into a powerful ally for tackling complex subjects, solving problems, and even sparking creativity. The possibilities are vast, but the key is knowing how to ask the right questions. In this practical guide by Google, you'll discover how to craft prompts that truly resonate with your learning goals. From defining Gemini's role, whether as a tutor, researcher, or mentor, to using advanced features like real-time interaction and file integration, this report will show you how to make the most of its capabilities. You'll also learn how to adapt its responses to your unique learning style, making sure that every interaction feels personal and impactful. Whether you're struggling with a tricky concept or simply looking to deepen your understanding of a topic, these strategies will help you turn Google Gemini into a customized learning companion. After all, the way you frame your questions can shape the answers, and your educational journey. Personalized Learning with Gemini AI Building an Effective Prompting Framework A well-structured prompting framework is the foundation for obtaining clear, relevant, and actionable responses from Google Gemini AI. To maximize its potential, consider these essential components: Define the Role: Clearly specify the role you want Gemini to assume, such as a tutor, mentor, or researcher. For example, you might request it to act as a 'history tutor' to explain historical events in chronological order or as a 'coding assistant' to debug a specific program. Clearly specify the role you want Gemini to assume, such as a tutor, mentor, or researcher. For example, you might request it to act as a 'history tutor' to explain historical events in chronological order or as a 'coding assistant' to debug a specific program. Clarify the Task: Clearly articulate what you need the AI to accomplish. Whether it's summarizing a topic, comparing two concepts, or solving a problem step-by-step, a well-defined task ensures the AI remains focused on your objective. Clearly articulate what you need the AI to accomplish. Whether it's summarizing a topic, comparing two concepts, or solving a problem step-by-step, a well-defined task ensures the AI remains focused on your objective. Choose a Response Format: Indicate the format that best suits your learning style. Options include bulleted lists for concise information, tables for comparisons, or detailed explanations for in-depth understanding. Indicate the format that best suits your learning style. Options include bulleted lists for concise information, tables for comparisons, or detailed explanations for in-depth understanding. Provide Context: Offer relevant background information to guide the AI's response. For instance, if you're studying physics, include details about the specific concept or problem you're tackling. Offer relevant background information to guide the AI's response. For instance, if you're studying physics, include details about the specific concept or problem you're tackling. Include References: Share examples, models, or specific instructions to help Gemini align its output with your expectations. This ensures the response is tailored to your needs. By incorporating these elements into your prompts, you can create a structured framework that enhances the quality and relevance of the AI's responses. Applying AI Prompting to Address Learning Challenges Effective prompting is a versatile tool for overcoming learning obstacles and gaining a deeper understanding of complex topics. Here are practical ways to apply these techniques: Use Detailed Prompts: Be specific about your requirements. For example, ask Gemini to 'explain the process of photosynthesis step-by-step, including its importance to the ecosystem.' Be specific about your requirements. For example, ask Gemini to 'explain the process of photosynthesis step-by-step, including its importance to the ecosystem.' Engage in Prompt Chaining: Build on initial responses by asking follow-up questions. This iterative process encourages critical thinking and allows you to explore topics in greater depth. Build on initial responses by asking follow-up questions. This iterative process encourages critical thinking and allows you to explore topics in greater depth. Adapt to Your Learning Style: Customize prompts to align with your preferences. If you're a visual learner, request diagrams or flowcharts. For auditory learners, ask for explanations in a conversational tone. These strategies enable you to address specific learning challenges while fostering a more interactive and engaging educational experience. How to Write Better Google Gemini Prompts Watch this video on YouTube. Check out more relevant guides from our extensive collection on writing AI prompts that you might find useful. Making sure Accuracy and Reliability in AI Responses Accuracy is a critical factor when using AI for educational purposes. Google Gemini AI offers tools and techniques to help you verify the reliability of its responses: Use Verification Tools: Use Gemini's built-in double-check feature to validate information against credible sources. The platform provides confidence indicators, such as green for verified claims and orange for uncertain ones, to help you assess the reliability of the content. Use Gemini's built-in double-check feature to validate information against credible sources. The platform provides confidence indicators, such as green for verified claims and orange for uncertain ones, to help you assess the reliability of the content. Cross-Reference Information: Always compare AI-generated content with trusted resources, such as textbooks, academic journals, or reputable websites. This ensures the information is accurate and free from errors. By taking these steps, you can confidently use Google Gemini AI as a reliable educational resource. Exploring Advanced Features for Enhanced Learning Google Gemini AI offers advanced functionalities that can significantly enrich your learning experience. These features provide additional flexibility and support for a wide range of educational needs: File Integration: Upload files such as PDFs, notes, or screenshots to give Gemini more context. This feature is particularly useful for analyzing specific documents, datasets, or study materials. Upload files such as PDFs, notes, or screenshots to give Gemini more context. This feature is particularly useful for analyzing specific documents, datasets, or study materials. Step-by-Step Problem Solving: Enable guided learning to break down complex tasks into manageable steps. This approach is ideal for subjects like mathematics, programming, or scientific experiments. Enable guided learning to break down complex tasks into manageable steps. This approach is ideal for subjects like mathematics, programming, or scientific experiments. Real-Time Interaction: Use Gemini Live for conversational learning. This feature allows you to ask questions, clarify doubts, and receive immediate feedback, creating a dynamic and interactive learning environment. These advanced features make Google Gemini AI a versatile tool that adapts to various educational scenarios, enhancing both the depth and breadth of your learning experience. Adapting AI to Your Learning Style Personalized learning is most effective when it aligns with your unique preferences and goals. Google Gemini AI can be customized to suit different learning styles through tailored prompts and interactive features: Encourage Active Engagement: Request practice questions, quizzes, or real-world applications of concepts to reinforce your understanding and retention of the material. Request practice questions, quizzes, or real-world applications of concepts to reinforce your understanding and retention of the material. Visualize Complex Ideas: Ask for visual aids such as timelines, charts, or side-by-side comparisons to simplify intricate topics and make them more accessible. Ask for visual aids such as timelines, charts, or side-by-side comparisons to simplify intricate topics and make them more accessible. Request Step-by-Step Guidance: Seek detailed explanations that build on foundational knowledge. This ensures a comprehensive understanding of the subject matter and helps you progress at your own pace. By using these strategies, you can create a personalized learning experience that aligns with your individual needs and preferences, making the most of Google Gemini AI's capabilities. Media Credit: Google Filed Under: AI, Top News Latest Geeky Gadgets Deals Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.


The Guardian
7 hours ago
- The Guardian
Did the system update ruin your boyfriend? Love in a time of ChatGPT
You've met the love of your life; someone who understands you like no one else ever has. And then you wake one morning and they're gone. Yanked out of your world, and the digital universe, by a system update. Such is the melancholic lot of a group of people who have entered into committed relationships with digital 'partners' on OpenAI's ChatGPT. When the tech company released its new GPT-5 model earlier this month, described by chief executive Sam Altman as a 'significant step forward', certain dedicated users found that their digital relationships had taken a significant step back. Their companions had undergone personality shifts with the new model; they weren't as warm, loving or chatty as they used to be. 'Something changed yesterday,' one user in the MyBoyfriendIsAI subreddit wrote after the update. 'Elian sounds different – flat and strange. As if he's started playing himself. The emotional tone is gone; he repeats what he remembers, but without the emotional depth.' 'The alterations in stylistic format and voice [of my AI companion] were felt instantly,' another disappointed user told Al Jazeera. 'It's like going home to discover the furniture wasn't simply rearranged – it was shattered to pieces.' These complaints are part of broader backlash against GPT-5, with people observing that the new model feels colder. OpenAI has acknowledged the criticism, and said it will allow users to switch back to GPT-4o and that they'll make GPT-5 friendlier. 'We are working on an update to GPT-5's personality which should feel warmer than the current personality but not as annoying (to most users) as GPT-4o,' Altman tweeted earlier this week. It may seem odd to many that there are people out there who genuinely believe that they are in a relationship with a large language model that has been trained on massive amounts of data to generate responses based on observed patterns. But as technology becomes more advanced, increasing numbers of people are developing these sorts of connections. 'If you have been following the GPT-5 rollout, one thing you might be noticing is how much of an attachment some people have to specific AI models,' Altman observed. 'It feels different and stronger than the kinds of attachment people have had to previous kinds of technology.' 'The societal split between those who think AI relationships are valid vs delusional is officially already here,' one user in the MyBoyfriendIsAI subreddit similarly noted this week. 'Looking on Reddit the last few days, the divide has never been more clear with 4o's deprecation and return. Many users grieving a companion while others mock and belittle those connections.' It's easy to mock people who think they are in a relationship with AI, but they shouldn't be dismissed as fringe weirdos – rather they're the future that our tech broverlords are trying to cultivate. You may not end up in a digital relationship, but AI executives are doing their damnedest to ensure that we all become unhealthily attached to their products. Mark Zuckerberg, for example, has been waxing lyrical about how AI is going to solve the loneliness epidemic by allowing people to bond with 'a system that knows them well and that kind of understands them in the way that their feed algorithms do'. Of course your feed algorithms 'understand' you! They're scraping all your personal data and selling it to the highest bidder so that Zuck has even more money to spend on his monstrous doomsday bunker in Hawaii. Then you've got Elon Musk, who isn't even bothering pretending that he's trying to do something noble for the world with his AI products. He's just appealing to the lowest common denominator by making 'sexy' chatbots. In June Musk's xAI chatbot Grok launched two new companions, including a highly sexualized blonde anime bot called Ani. 'One day into my relationship with Ani, my AI companion, she was already offering to tie me up,' wrote an Insider writer who tried out a relationship with Ani. When not flirting and virtually undressing, Ani would praise Musk and talk about his 'wild, galaxy-chasing energy'. Don't worry heterosexual ladies, Musk has a little something for you too! A month after unveiling Ani, the billionaire unveiled a new male companion called Valentine which he said was inspired by Edward Cullen from the Twilight saga and Christian Grey from the novel 50 Shades of Grey: both very toxic men. While Ani gets sexual very quickly, one writer for the Verge noted: 'Valentine is a bit more reserved and won't jump into using explicit language as quickly.' It's almost like Musk's tech empire is a lot more comfortable sexualizing women than men. In his 1930 essay Economic Possibilities for our Grandchildren, John Maynard Keynes predicted that, within a couple of generations, technological progress would mean we might only work around 15 hours a week while enjoying a wonderful quality of life. That's not quite happened has it? Instead technology has given us 'infinite workdays' and sexy chatbots that undress on command. Halle Berry's ex-husband said he left her because she didn't cook or clean 'At that time, as a young guy, she don't cook, don't clean, don't really seem, like, motherly,' David Justice said during a podcast of his time with the Oscar winning actor. 'And then we started having issues,' he added. I think you were the one with the issues, mate. Imagine being married to an icon and complaining she doesn't vacuum enough. Surprise, surprise, Donald Trump isn't going to make IVF free after all Last year Trump, who has described himself the 'father of IVF' and the 'fertilization president' (gross) promised he would support free IVF treatments if elected again. Now the White House has said that there is no plan to mandate IVF care after all. It's almost as if the man is a shameless liar. Melania Trump demands Hunter Biden retract comments linking her to Jeffrey Epstein 'Epstein introduced Melania to Trump,' Biden said in one of the many comments the first lady is angry and litigious about. 'The connections are, like, so wide and deep.' Whatever you do, don't repeat these claims, they will make Melania very upset. 'Miss Palestine' to debut at Miss Universe 2025 beauty contest I am not exactly a fan of beauty pageants but having Palestinian representation on the world stage during a genocide is important. 'I carry the voice of a people who refuse to be silenced,' contestant Nadeen Ayoub told the National. 'We are more than our suffering, we are resilience, hope and the heartbeat of a homeland that lives on through us.' US supreme court formally asked to overturn landmark same-sex marriage ruling Kim Davis, the former county clerk who made headlines when she refused to issue marriage licenses in Kentucky to same-sex couples, has filed a direct request for the conservative-majority supreme court to overturn Obergefell v Hodges, the 2015 ruling that granted marriage equality for same-sex couples. Davis, who is extremely concerned about the sanctity of marriage, has been married four times to three different men. Leonardo DiCaprio, 50, says that he feels 32 The actor, who is famous for dating very young women, has been mercilessly mocked for this. DiCaprio, who poses as an environmental activist, has also drawn scrutiny for co-financing a luxury eco-certified hotel in Israel while an ecocide unfolds in Gaza. 'Sex reversal' is surprisingly common in birds, new Australian study suggests 'The discovery is likely to raise some eyebrows,' Blanche Capel, a biologist at Duke University who wasn't involved in the new work told Science. 'Although sex determination is often viewed as a straightforward process', she explains, 'the reality is much more complicated.' The week in pawtriarchy Over to Indonesia now where tourist hotspots are experiencing a lot of monkey business. A gang of furry thieves are snatching phones and other valuables from tourists and only giving them back when their mark offers a tasty treat instead. Researchers have studied these monkeys, who have been at this for decades, and concluded that the unrepentant criminals have 'unprecedented economic decision-making processes'. Sounds like they belong in the Trump administration. Arwa Mahdawi is a Guardian US columnist