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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
trevorsherpr
Frequent Visitor

How to Get Column Total

Hi,

 

I have tried to make sense of numerous existing questions relating to this subject but still cannot get my measure right.

 

I am attempting to work out "Market Share" in the following table.. Which would be calculated by dividing the "All Delivery Decisions", which is a measure, into the column total of "All Delivery Decision"

The "All Delivery Decisions" measure looks like this:

All Delivery Decsions = [Early Delivery]+[On Time Delivery]+[Late Delivery]

And an example of the "Early Delivery" measure is this:

Early Delivery =
CALCULATE(
    COUNTA('PowerBI_DeliveryStatistics'[Delivery Decision]),
    'PowerBI_DeliveryStatistics'[Delivery Decision] IN { "Early" }
)

I have managed to build a measure that gives me the total of the "Late Deliveries" but struggling to get the all the deliveries...

Measure = SUMX(ALLSELECTED('PowerBI_DeliveryStatistics'), CALCULATE(COUNT(PowerBI_DeliveryStatistics[LeadTimeDays])))
Can anyone offer some help please?

Screenshot 2023-07-17 093134.png

 




1 ACCEPTED SOLUTION
trevorsherpr
Frequent Visitor

phew!

Found it!

Measure = CALCULATE([Early Delivery]+[On Time Delivery]+[Late Delivery],ALLSELECTED())

View solution in original post

1 REPLY 1
trevorsherpr
Frequent Visitor

phew!

Found it!

Measure = CALCULATE([Early Delivery]+[On Time Delivery]+[Late Delivery],ALLSELECTED())

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.