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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors