Forum Discussion

MINGXIN's avatar
MINGXIN
Helper I
2 years ago

PowerBI DAX distinct sum

Dear,

 

Hope you are well.

 

I have a dataset as below. I'm trying to create a formula to calculate the complete_qty corresponding to each order and then sum it up (

18.8309393

 from 2023090402R

+

14.1792

 from 2337019R

).Because Category 1 under each order should have the same complete_qty.
So overall, complete_qty should be summed up for each order.

 

Thanks for any ideas.

 

BR

Soldier

 

 

10 Replies

  • Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
    If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
    Please show the expected outcome based on the sample data you provided.

    If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

    • MINGXIN's avatar
      MINGXIN
      Helper I
      • order_nocomponent_part_nocomplete_qtyCategory1
        2023090402R18192918.83094SOLVENT
        2023090402R18041918.83094SOLVENT
        2023090402R18069918.83094SOLVENT
        2337019R18019614.1792SOLVENT
        2023090402R21369618.83094PACKAGING
        2023090402R22671318.83094PACKAGING
        2337019R22181714.1792PACKAGING
        2337019R22180814.1792PACKAGING
        2337019R22180714.1792PACKAGING
        2337019R22154114.1792PACKAGING
        2337019R22148814.1792PACKAGING
        2337019R22180814.1792PACKAGING
        2337019R22905414.1792Others
        2337019R22905414.1792Others
        2023090402R18231618.83094INK
        2023090402R18577318.83094INK
        2023090402R115425218.83094FILM
        2023090402R115425218.83094FILM
        2023090402R113128818.83094FILM
        2337019R113937914.1792FILM
        2337019R113937914.1792FILM
        2337019R113844014.1792FILM
        2337019R113844014.1792FILM
        2337019R18600614.1792ADHESIVE
        2337019R18587114.1792ADHESIVE
    • MINGXIN's avatar
      MINGXIN
      Helper I

      Hi lbendlin,

      Thanks for your reply, please find the dataset below.

      Thank you so much for your attention.