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
Natasha93
Frequent Visitor

DAX Measure to Find Percentage of a Column

Hi all 🙂

 

I have a column in a table that shows the "resolving group" of a series of "tickets"

RESOLVING GROUP
Primary Team
Other Assignment Groups
Other Assignment Groups
Primary Team
Primary Team

Primary Team

 

I would like to add a card visual that shows the percentage of tickets resolved by the "Primary Team" compared to "Other Assignment Groups" based on this column. Note that it is just the two groups listed, not Primary and a bunch of other names groups.

 

Is this possible to do in a measure? If so, what should I use?

Or do I need to take an alternative step?

 

Thanks in adv for your help on this!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Natasha93 

please try

=
VAR PrimaryTeamTickets =
    CALCULATE (
        DISTINCTCOUNT ( TabeName[Ticket no.] ),
        TabeName[Resolving Group] = "Primary Team"
    )
VAR AllTickets =
    DISTINCTCOUNT ( TabeName[Ticket no.] )
RETURN
    DIVIDE ( PrimaryTeamTickets, AllTickets )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Natasha93 

please try

=
VAR PrimaryTeamTickets =
    CALCULATE (
        DISTINCTCOUNT ( TabeName[Ticket no.] ),
        TabeName[Resolving Group] = "Primary Team"
    )
VAR AllTickets =
    DISTINCTCOUNT ( TabeName[Ticket no.] )
RETURN
    DIVIDE ( PrimaryTeamTickets, AllTickets )

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!

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.