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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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