Computing accurate percentages with row level security in Power BI

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2023
  • How to compute ratios when row-level security hides some of the data. If the percentage also includes the hidden rows in the comparison, you should customize the data model and the measures involved to get the right result.
    Article and download: sql.bi/817079?aff=yt
    How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
    The definitive guide to DAX: www.sqlbi.com/books/the-defin...
  • НаукаНаука

Комментарии • 13

  • @luizkrein
    @luizkrein Месяц назад +1

    Thanks!
    I was looking for calculation order to understand if it is safe to use calculated table with RLS for my needs and I got this gem!

  • @fpa89
    @fpa89 13 дней назад +1

    This is gold, thanks

  • @katarzynalaskowska4740
    @katarzynalaskowska4740 4 месяца назад +1

    Thanks, I used something silimar a long time ago but I wasn't sure that it was the right one. I thought for sure I am doing something wrong, but this helped a lot.

  • @sandeepbarge4699
    @sandeepbarge4699 6 месяцев назад +1

    Amazing! Thanks for another amazing video.
    At first I had thought that it won't work with dynamic row level security if I am implementing dynamic RLS in following manner?
    1) Create Users Table.
    2) Create Countries Table.
    3) Create Users_Countries bridge table.
    4) Store Country ID in each dimension and fact tables.
    5) Define 1:many single directional relationship between Users and Bridge table.
    6) Define 1:many bi-directional relationship between Countries and Bridge table.
    7) Define 1:many relationships between Countries and other Dimension and Fact tables.
    8) Add role and add filter to it on Users table using USERPRINCIPALNAME() function.
    9) In Power BI Service add users to roles in dataset\security settings.
    But I guess in this case solution you mentioned at start of the video of creating 1 row table with total sales for entire world will help. Please correct me if I am wrong.

  • @sarajvo2010
    @sarajvo2010 7 месяцев назад +2

    So simple, but very great solution! Thank you

  • @mathew9665
    @mathew9665 7 месяцев назад +1

    I had this exact issue 2-3 years ago - I did a very simular solution - highly recommend this approach

  • @maridekanoidze1719
    @maridekanoidze1719 7 месяцев назад +1

    Thank You SQLBI! I really enjoy DAX because of you ❤

  • @nidhisingh4973
    @nidhisingh4973 5 месяцев назад

    Thank you for another awesome video.

  • @tamerjuma
    @tamerjuma 7 месяцев назад +2

    Amazing! Thank you so much for sharing your magic secrets ❤️

  • @Bharath_PBI
    @Bharath_PBI 7 месяцев назад +1

    Thank you!

  • @JMcLeodKC711
    @JMcLeodKC711 7 месяцев назад +1

    Another feature that has been around since good old MDX.

  • @RandomlyWisdom
    @RandomlyWisdom 7 месяцев назад +1

    Silent learning was to use ALL and VALUES instead of ALLEXCEPT!