Different Calculations Based on Hierarchy Levels Inside One Measure in Power BI

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 14

  • @henkelssarah913
    @henkelssarah913 Před 2 lety

    This was really helpful for me, very practical many thanks :)

    • @BILand
      @BILand  Před 2 lety

      Great! Thanks for watching

  • @dhananjaybhatt7428
    @dhananjaybhatt7428 Před rokem

    Fabulously applied Dax !

  • @VasuBhasin-dj8qg
    @VasuBhasin-dj8qg Před rokem +1

    I have 7 levels in my hierarchy , i want the Totals to be calculated based on what level we are currently on ,as formula changes for each levels is it possible to capture the level/grain we are at in matrix and then conditionally return the formula for that
    for example - if(our matrix visual is at brand grain) , sum(sales),
    if(our matrix visual is at plant grain) , avg(sales),
    if(our matrix visual is at line level grain) , sum(sales)

    • @BILand
      @BILand  Před rokem

      Hi there, thanks for your comment. If you mean the sub total (meaning higher hierarchy is total for lower one) then this is the way to go. If by total you mean grand total and in that case going to next level you mean using double down arrows in the visual to totally go to next level, you can use ISINSCOPE, however it doesn't seem to me only doing this you can show more than one type of grand total. In that case I might take the journey to do/test the calculations in a calculated table and create different totals as new categories ..

  • @ajaysutar2
    @ajaysutar2 Před rokem

    Wow..This is what I wanted.. Thanks a bunch.. Great..

    • @BILand
      @BILand  Před rokem

      Happy it was helpful :)

  • @user-kv2wc5my4z
    @user-kv2wc5my4z Před rokem

    Thank you so much! This was very useful for me!

    • @BILand
      @BILand  Před rokem

      Thanks fo watching. Happy it was useful :)

  • @martintobar6261
    @martintobar6261 Před rokem

    Thanks, this was a great lesson.

  • @candacelightfoot3684
    @candacelightfoot3684 Před 2 lety

    What about 3 levels in hierarcy?

    • @BILand
      @BILand  Před 2 lety

      Thanks for your comment. You can add conditions considering your new level in the same way.