Matrix table visual dax for division

  • Matrix table visual dax for division

    Posted by DSC Communities on November 2, 2017 at 1:45 am
    • Mahaboob Basha T

      Member

      November 2, 2017 at 1:45 AM

      Hi All,

      I am trying to write the dax function for the divide(total/distinctcount(quoteNo))

      BelowĀ  img shows only satisfying conditionĀ vesrion <=1.0 and accepts validation =1

      Ā matrix
      For example,

      if i am having total 40 and quoteNo count is 20 .

      I want to calculate 40/20 = 2

      I am sharing my pbix fileĀ hereĀ . Please help me how can i achieve thisĀ 

      Thanks a ton in advance

      ——————————
      Mahaboob Basha T
      ——————————

    • Tara Prasad Gumansingh

      Member

      November 2, 2017 at 3:39 AM

      Hi Mahaboob,

      You should create a column first like the below one
      Column = IF(‘sample'[version] <= 1.0,1,BLANK())
      Then create a measure like the below
      Measure = CALCULATE(COUNT(‘sample'[quoteNo]),FILTER(‘sample’,’sample'[Column] = 1))
      Then you can divide Measure / distinctcount of quoteNo

      Regards,

      Tara Prasad Gumansingh
      Bangalore

      ——Original Message——

      Hi All,

      I am trying to write the dax function for the divide(total/distinctcount(quoteNo))

      BelowĀ  img shows only satisfying conditionĀ vesrion <=1.0 and accepts validation =1

      Ā matrix
      For example,

      if i am having total 40 and quoteNo count is 20 .

      I want to calculate 40/20 = 2

      I am sharing my pbix fileĀ hereĀ . Please help me how can i achieve thisĀ 

      Thanks a ton in advance

      ——————————
      Mahaboob Basha T
      ——————————

    • Mahaboob Basha T

      Member

      November 2, 2017 at 4:40 AM

      Hi prasad,

      Thank you for the response?.

      But, i want the total of Status (Comfirmed, draft, published) i.e 49.matrixI followed as you suggested but, i am getting 209 but here i have 49.

      I am sharing my pbix file in the attachment of the reply. Please check and suggest me how can i achieve this.

      Thanks in advance

      ——————————
      Mahaboob Basha T
      ——————————
      ——————————————-

    DSC Communities replied 8 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Matrix table visual dax for division’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!