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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to get value divide by total and not row

Hi all,

 

Any idea how I can get the result as my "required output" below?

 

For the "result", I use quick measure formula : sum(abnormality)/sum(usage).

 

*Current table I already unpivot the start(unit) & joint(unit).

 

nuhasan_2-1690167008467.png

 

Regards,

Nuha

 

 

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1690168861908.png

 

 

Usage measure: = 
SUMX (
    SUMMARIZE (
        CALCULATETABLE ( Data, ALL ( Data[Abnormality] ) ),
        Data[Day],
        Data[Usage]
    ),
    Data[Usage]
)

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi @Jihwan_Kim ,

 

This is fantastic method but there will be a problem when there are two or more production for the same day as below example. The usage measure should sum both of the row quantity but it pick 1 value row only.

 

Current measure formula

DayAbnormalityValueUsage Measure
19Joint868869

 

Actual Data

DayAbnormalityValueUsage Measure
19Joint07293
19Joint868869

 

 

Below are the formula I use as per your advice

Usage measure =
SUMX(
    SUMMARIZE (
        CALCULATETABLE('For Graph',ALL('For Graph'[Abnormality])),
        'For Graph'[Day],
        'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating]
    ),
    'For Graph'[SAP_PPT_EV_MaterialDocument_GI (2).Total GI Coating]
)
 
Regards,
Nuha
Anonymous
Not applicable

Hi @Jihwan_Kim ,

 

For the data model, I already replied the comment below this thread for your reference.

 

Regards,

Nuha

foodd
Super User
Super User

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Anonymous
Not applicable

 

Current Data List

 

DayAbnormalityValueUsage
26Start44235343
22Joint21541217
26Joint14635343

 

Current Powerbi Formulation

 

AbnormalityStart
Value442
Usage35343
Result (Value/Usage)1.25%

 

AbnormalityJoint
Value361
Usage76560
Result (Value/Usage)0.48%

 

Required Output

 

AbnormalityStart
Value442
Usage76560
Result (Value/Usage)0.58%

 

AbnormalityJoint
Value361
Usage76560
Result (Value/Usage)0.48%

 

Regards,

Nuha

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors