Forum Discussion

Vladimir_NBG's avatar
Vladimir_NBG
Icon for Helper I rankHelper I
5 years ago
Solved

Numeric distribution - How to create measure

Hi All, I would need help in calculating numeric distribution, in terms how to exactly set up a formula. So, in the table below there is "dummy" numbers. I need formula that will distinct count on...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Vladimir_NBG 

    Please check the below picture and the sample pbix file's link down below.

     

     

    Distribution (Number of stores) =
    IF (
    ISFILTERED ( 'Table'[PRODUCT NAME] ),
    COUNTROWS (
    FILTER (
    VALUES ( 'Table'[STORE CODE] ),
    CALCULATE ( SUM ( 'Table'[SALES QUANTITY] ) ) > 0
    )
    )
    )

     

     

    https://www.dropbox.com/s/9tebnnhih3fsikd/vladimir.pbix?dl=0 

     

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM