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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 32

  • @rahulmehla2014
    @rahulmehla2014 4 หลายเดือนก่อน +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 8 หลายเดือนก่อน +1

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

    • @rahulmehla2014
      @rahulmehla2014 4 หลายเดือนก่อน +2

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

  • @sourabhpatel3834
    @sourabhpatel3834 10 หลายเดือนก่อน +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 4 หลายเดือนก่อน +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

  • @LastChance5170
    @LastChance5170 10 หลายเดือนก่อน +2

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

  • @sc0957
    @sc0957 11 หลายเดือนก่อน +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 2 หลายเดือนก่อน

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

  • @shreyoshiraychaudhary8808
    @shreyoshiraychaudhary8808 5 หลายเดือนก่อน +1

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

    • @rahulmehla2014
      @rahulmehla2014 4 หลายเดือนก่อน

      yeah, calculate is doing the context transitioning

  • @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

    • @rahulkumarbhagat2637
      @rahulkumarbhagat2637 ปีที่แล้ว

      Hi...are you rename default columns in power bi desktop?

  • @ragnarlodhbrok1684
    @ragnarlodhbrok1684 6 หลายเดือนก่อน +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 4 หลายเดือนก่อน

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

  • @bollymania
    @bollymania 10 หลายเดือนก่อน

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

  • @krushalkansara2120
    @krushalkansara2120 ปีที่แล้ว

    Can we use the "Countif" formula

  • @SSRealEstates83
    @SSRealEstates83 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

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

  • @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.'

    • @learnwidgiggs
      @learnwidgiggs  ปีที่แล้ว

      Using bookmark..we can achieve this thing

  • @Globethroughourlens
    @Globethroughourlens 9 หลายเดือนก่อน +1

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

    • @rahulmehla2014
      @rahulmehla2014 4 หลายเดือนก่อน

      yeah, calculate is doing the context transitioning

  • @Ritesh799
    @Ritesh799 ปีที่แล้ว

    Nicely explained.
    Thanks 👍

  • @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 6 หลายเดือนก่อน

    Hi we can solve it with earlier function also

    • @rahulmehla2014
      @rahulmehla2014 4 หลายเดือนก่อน +1

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

  • @RCtalks186
    @RCtalks186 8 หลายเดือนก่อน

    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 4 หลายเดือนก่อน

      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