Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBrainNWH
Helper I
Helper I

DIVIDE Measure - I want to sum results

 

Here's my measure...

Cases = DIVIDE(SUM('Northwest Harvest$Value Entry'[Invoiced Quantity]),SUM('Northwest Harvest$Value Entry'[Qty UoM (Sales)]))
 
Here are the results...
PBrainNWH_0-1677387330817.png

Everything is working fine, but instead of 52.00 as the total, I'd like the sum of the column. Is this doable? 

 

Thanks.

1 ACCEPTED SOLUTION

Your post helped me get to this:

Cases = SUMX('Northwest Harvest$Value Entry','Northwest Harvest$Value Entry'[Invoiced Quantity] / 'Northwest Harvest$Value Entry'[Qty UoM (Sales)])

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your dataset looks like, but please try something like below whether it works.

 

Cases =
SUMX (
    DISTINCT ( yourtablename[yourcolumnname_thatyouwanttoseeinthevisual] ),
    CALCULATE (
        DIVIDE (
            SUM ( 'Northwest Harvest$Value Entry'[Invoiced Quantity] ),
            SUM ( 'Northwest Harvest$Value Entry'[Qty UoM (Sales)] )
        )
    )
)

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


Go to My LinkedIn Page


Your post helped me get to this:

Cases = SUMX('Northwest Harvest$Value Entry','Northwest Harvest$Value Entry'[Invoiced Quantity] / 'Northwest Harvest$Value Entry'[Qty UoM (Sales)])

The column I want to total is Cases. Right now, the calc for Cases is working on each line, but the total is dividing Qty UoM (Sales) by Invoiced Quantity as well, and I want to see the Cases total as the sum of the column. When I use the expression you offered, and put Cases as 'yourcolumnname_thatyouwanttoseeinthevisual' Cases isn't showing as an option to include in the calc.

PBrainNWH_0-1677424912037.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.