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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Green_G
Frequent Visitor

Sales Conversion

I have a table in the following format:

 

IDStatus
1ABCQuote
2ABCSold
3XYZExpired
4EFGConfirmed
5JKLConfirmed

 

I want to calculate how may confirmed IDs there are against the total IDs. Sorry if this is simple, I'm just starting out with DAX!

 

Thanks in advance...

1 ACCEPTED SOLUTION
Martin_D
Super User
Super User

Here you are:

 

% Confirmed = 
DIVIDE (
    CALCULATE (
        COUNTROWS ( VALUES ( 'Table'[ID] ) ),
        KEEPFILTERS ( 'Table'[Status] = "Confirmed" )
    ),
    COUNTROWS ( VALUES ( 'Table'[ID] ) )
)

 

Selected confirmed percentage of all selected IDSelected confirmed percentage of all selected ID

Formatting as percentage is done in the Measuretools ribbon. You need to click on the Measre in the fields list  to see that ribbon. You need to click on Data in View ribbon to see the fields list.

 

github.pnglinkedin.png

View solution in original post

1 REPLY 1
Martin_D
Super User
Super User

Here you are:

 

% Confirmed = 
DIVIDE (
    CALCULATE (
        COUNTROWS ( VALUES ( 'Table'[ID] ) ),
        KEEPFILTERS ( 'Table'[Status] = "Confirmed" )
    ),
    COUNTROWS ( VALUES ( 'Table'[ID] ) )
)

 

Selected confirmed percentage of all selected IDSelected confirmed percentage of all selected ID

Formatting as percentage is done in the Measuretools ribbon. You need to click on the Measre in the fields list  to see that ribbon. You need to click on Data in View ribbon to see the fields list.

 

github.pnglinkedin.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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