End-to-End DAX Tutorial | Power Bi | COALESCE function | KSR Datavizon | DAX Studio

Sdílet
Vložit
  • čas přidán 8. 05. 2023
  • The #COALESCE function in DAX (Data Analysis Expressions) is used to return the first non-blank value in a list of expressions. It takes multiple expressions as arguments and evaluates them in order from left to right, returning the first expression that is not blank or empty.
    The syntax of the COALESCE function is as follows:
    COALESCE(expression1, expression2, ...)
    Suppose you have a table called "Sales" with columns "Region", "Sales1", and "Sales2". You want to create a new column called "Total Sales" that adds up the sales from both columns, but you want to use the non-blank value from either "Sales1" or "Sales2" if one of them is blank.
    Here's how you can do it using the COALESCE function:
    Total Sales = COALESCE(Sales[Sales1], Sales[Sales2])
    In this example, the COALESCE function will evaluate the expression Sales[Sales1] first, and if it is not blank, it will return that value. Otherwise, it will evaluate the expression Sales[Sales2] and return that value if it is not blank. If both expressions are blank, the COALESCE function will return a blank value.
    How are we different from Others...?
    1. 24*7 Recorded sessions Access & Support
    2. Flexible Class Schedule
    3. 100 % Job Guarantee & 100 % Live Training
    4. Mentors with +14 yrs. & Free Microsoft License
    6. LMS And APP Availability for a Good live session experience.
    7. Soft Skills I Email Etiquette I Client/Stakeholders Handling Techniques.
    Call us on IND: 8951796123 to talk to our Course Advisors
    👉Please ping on WhatsApp:- wa.me/918951796123
    #DAX #DataAnalysis #DataVisualization #PowerBI #DataModeling #DataAnalysis #DataVisualization #BusinessIntelligence #Measure #CalculatedColumn #DAX #PowerBI #PowerPivot #DataAnalysis #powerbi
    #dax #bi #powerbidesktop #powerbiforbeginners #powerbitutorialforbeginners #variables #powerbiinterviewquestions

Komentáře • 16

  • @user-od5fq9kq8e
    @user-od5fq9kq8e Před 29 dny

    Nicely Explained

  • @4nxh___
    @4nxh___ Před rokem +1

    Well articulated.

  • @venky6176
    @venky6176 Před rokem +1

    Excellent explanation

  • @biswadeepsahoo
    @biswadeepsahoo Před rokem +1

    Good explanation

  • @dilipinamdar5523
    @dilipinamdar5523 Před rokem +1

    Nice One!!!

  • @abchj123
    @abchj123 Před rokem +1

    Power bi videos will come up with kannada language its very useful sir.

    • @KSRDatavizon
      @KSRDatavizon  Před 11 měsíci

      We will try, please subscribe our channel,

  • @rrr9110
    @rrr9110 Před rokem +2

    please confirm if the blank values is replaced by 0 in query editor, will coalesce function is required in that scenario?

  • @prudhviraj78
    @prudhviraj78 Před rokem

    👏🏻👏🏻👏🏻 nice explanation ma’am

  • @jacejohnson2349
    @jacejohnson2349 Před 10 měsíci

    I love using COALESCE in most of my measures. Especially when I'm displaying those measures in a card visual. However, when I display these measures in a matrix or table, it doesn't seem to let me filter rows out that shouldn't be there.
    For example, I have a table that displays all the communities in all of our multiple real estate portfolios. When I filter on portfolio, it should remove many communities that don't belong to that portfolio. But, because of me using COALESCE, it still leaves them on the table but just zero's out all of the measures. Any solution to this?

    • @KSRDatavizon
      @KSRDatavizon  Před 4 měsíci

      Thank you for sharing your experience with using COALESCE in your measures. It's great to hear how you're utilizing it in different visuals and scenarios.

  • @01Ashish01
    @01Ashish01 Před rokem +1

    next video

    • @KSRDatavizon
      @KSRDatavizon  Před 11 měsíci

      will upload soon , please subscribe our channel for regular updates.