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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Calculate percentage on subgroup for string

Hi,

I want to calculate the percentage of each category (Late or OnSchedule) under each carrier. 

MonthWeekCarrierLateOnSched
11UPSOnSchedule
12UPSOnSchedule
13UPSOnSchedule
14UPSLate
25UPSOnSchedule
26SEFLOnSchedule
27SEFLOnSchedule
28SEFLOnSchedule

 

% = DIVIDE(
SUM('DATA'[LateOnSched]),
CALCULATE(SUM('DATA'[LateOnSched]),
ALLEXCEPT('DATA','DATA'[LateOnSched]))
)

noychheng_0-1649873519433.png

 

Any help is appreciated 🙂

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @Anonymous ,

 

Try Below

Row Count = COUNT(Data[LateOnSched])
Supplier Count = CALCULATE([Row Count],ALLEXCEPT(Data,Data[Carrier],Data[Month]))<-Change to Weekl or Month depending on what's in your visual.
% = DIVIDE([Row Count],[Supplier Count])

davehus_0-1649886075910.png

If this solves your problem, please accept my solution.

View solution in original post

1 REPLY 1
davehus
Memorable Member
Memorable Member

Hi @Anonymous ,

 

Try Below

Row Count = COUNT(Data[LateOnSched])
Supplier Count = CALCULATE([Row Count],ALLEXCEPT(Data,Data[Carrier],Data[Month]))<-Change to Weekl or Month depending on what's in your visual.
% = DIVIDE([Row Count],[Supplier Count])

davehus_0-1649886075910.png

If this solves your problem, please accept my solution.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.