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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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