Scenario based question on Allexcept() | DAX | Power BI Interview

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 32

  • @rahulmehla2014
    @rahulmehla2014 5 місяців тому +3

    Shashank sir , We can write this only --> Count = CALCULATE(COUNT('Sample'[Product])) there is no use of allexcept here
    because this calculate will do the context transition

  • @prathameshmunj4768
    @prathameshmunj4768 9 місяців тому +1

    you can also use calculate(count(product), filter(sample,earlier(product)=product) )

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому +2

      CALCULATE(COUNT('Sample'[Product])) only this is sufficient

  • @sourabhpatel3834
    @sourabhpatel3834 11 місяців тому +2

    hi,we can do in this way also
    Count =
    VAR Currentrow = 'Table (8)'[Model]
    RETURN CALCULATE ( COUNT ('Table (8)'[Model]),
    FILTER ('Table (8)',
    'Table (8)'[Model] = Currentrow
    )
    )

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому +1

      CALCULATE(COUNT('Sample'[Product])) only this is sufficient

  • @HarshithaKumar-i5f
    @HarshithaKumar-i5f Рік тому +6

    Sir kindly share interview questions for freshers who are becoming Power BI developers with no company experience

  • @shreyoshiraychaudhary8808
    @shreyoshiraychaudhary8808 6 місяців тому +1

    simple Count = CALCULATE( COUNT(Phone[phone])) is also giving the results

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому

      yeah, calculate is doing the context transitioning

  • @LastChance5170
    @LastChance5170 11 місяців тому +2

    If you use simple calculate (count (column)) we could have achieved this

  • @Globethroughourlens
    @Globethroughourlens 10 місяців тому +1

    Even, Custom = CALCULATE(COUNT(Sheet4[Product])) yields the same result.

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому

      yeah, calculate is doing the context transitioning

  • @shobhanasinha79
    @shobhanasinha79 Рік тому +2

    Hi Shashank,
    I have been following your channel for quite sometime now and I must say your scenario based questions are very unique and helpful in interview preparation.
    I recently encountered a scenario based question in an interview in a company and would be grateful if you could help in finding the solution.
    The question was 'How will you create buttons for toggling if you want to get sales and revenue. The toggle button should appear on the page.'

  • @sc0957
    @sc0957 Рік тому +1

    Can you please make video on row context, filter context and context transition. Tried to watch videos on youtube but Iam not able to understand 😢.

  • @vrushabhwasulkar
    @vrushabhwasulkar 3 місяці тому

    Hello shashank,
    without using ALLEXCEPT function, it shows same result...
    so why we should be use the ALLEXCEPT function

  • @bollymania
    @bollymania 11 місяців тому

    Hi Shashank,
    How to calculate total sales using variables and returns. don't use calculate

  • @NITIANShubham
    @NITIANShubham Рік тому +1

    Hey @learnwidgiggs i need your help solve a problem statement. I have one excel datasource and I have created a report having multiple chart in power bi desktop, now i updated the column header name in the data source and i want updated name to reflect in every chart without any manual intervention. How can I achieve it? Please guide me

  • @ragnarlodhbrok1684
    @ragnarlodhbrok1684 7 місяців тому +1

    bro I dont understand why we are using allexcept here,
    here we have only one column,
    even if i use the general "calculate(count(table[productname])" we will get the same output. Please explain

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому

      yeah there is no need of allexpect here, CALCULATE(COUNT('Sample'[Product])) only this is sufficient calculate is doing the context transitioning here

  • @Ritesh799
    @Ritesh799 Рік тому

    Nicely explained.
    Thanks 👍

  • @krushalkansara2120
    @krushalkansara2120 Рік тому

    Can we use the "Countif" formula

  • @SSRealEstates83
    @SSRealEstates83 Рік тому +1

    Hello Shashank,
    Greetings!
    I am working as a Power BI Developer.
    I got knowledge on SQL.
    But I wan upgrade my skills but not sure what I exactly I should learn.
    Should I go for Power platform or Azure.
    If Azure... what exactly I need to learn in azure.
    Kindly suggest.
    Best,
    Shafiq Ahmed.

    • @learnwidgiggs
      @learnwidgiggs  Рік тому

      Depends on your interest
      If going with Azure then learn ADF and Databricks

  • @gjsanu
    @gjsanu Рік тому

    But can't we simply drop the product column as value which will aggregate it as count, also there is not other filter context in question...

    • @clear_vision_
      @clear_vision_ Рік тому

      If you add any other column to this table, then you will face circular dependency error... So its safe to use allexcept for window function like behaviour

  • @meharusia9880
    @meharusia9880 7 місяців тому

    Hi we can solve it with earlier function also

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому +1

      CALCULATE(COUNT('Sample'[Product])) only this is sufficient

  • @RCtalks186
    @RCtalks186 9 місяців тому

    Actually in table iPhone 11 and iPhone 13 repeat in table but we want total count of brands only
    But your results is
    iPhone11-2
    iPhone 12-2
    Like that
    But we want
    iPhone11-total sum
    iPhone 12-totalsum
    iPhone 13-totalsum
    Like that we want how Will you create

    • @rahulmehla2014
      @rahulmehla2014 5 місяців тому

      in calculate column you will get result like this only, for the result u are saying u have to use matrix visual where we use a measure