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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PhilipsNew
New Member

How to get a simple % of a total

I have a data value in a oracle database

There are 6 choices InProgress, InComplete, waiting, delayed, started and completed

There are 278 in total and the value is want is the % of that total that is either Completed or Started

I want it to display in a visualisation card

I am very new to Power Bi and really appreciate any help, pointers or solutions

Thank You

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @PhilipsNew 

Your measure would probably go like this. Probably, since we don't have a sample data.

DIVIDE (
    --calculate the count where status is either completed or started and show it only when the row is either of the status
    CALCULATE (
        [count measure],
        KEEPFILTERS ( 'table'[status] = "Completed" || 'table'[status] = "Started" )
    ),
    --calculate the count where status is completed or started and apply that to the whole status column
    CALCULATE (
        [count measure],
        FILTER (
            ALL ( 'table'[status] ),
            'table'[status] = "Completed"
                || 'table'[status] = "Started"
        )
    )
)

 

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Bibiano_Geraldo
Super User
Super User

Hi @PhilipsNew ,

You can use the following measure:

Completed_Started_Percentage =
VAR TotalRecords = COUNTROWS(TableName)
VAR CompletedOrStarted = 
    COUNTROWS(
        FILTER(
            TableName,
            TableName[Status] IN {"Completed", "Started"}
        )
    )
RETURN
    DIVIDE(CompletedOrStarted, TotalRecords, 0) * 100

 

Let me know if its ok 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @PhilipsNew ,

Is my follow-up just to ask if the problem has been solved?

If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?

Thank you very much for your cooperation!

Bibiano_Geraldo
Super User
Super User

Hi @PhilipsNew ,

You can use the following measure:

Completed_Started_Percentage =
VAR TotalRecords = COUNTROWS(TableName)
VAR CompletedOrStarted = 
    COUNTROWS(
        FILTER(
            TableName,
            TableName[Status] IN {"Completed", "Started"}
        )
    )
RETURN
    DIVIDE(CompletedOrStarted, TotalRecords, 0) * 100

 

Let me know if its ok 

danextian
Super User
Super User

Hi @PhilipsNew 

Your measure would probably go like this. Probably, since we don't have a sample data.

DIVIDE (
    --calculate the count where status is either completed or started and show it only when the row is either of the status
    CALCULATE (
        [count measure],
        KEEPFILTERS ( 'table'[status] = "Completed" || 'table'[status] = "Started" )
    ),
    --calculate the count where status is completed or started and apply that to the whole status column
    CALCULATE (
        [count measure],
        FILTER (
            ALL ( 'table'[status] ),
            'table'[status] = "Completed"
                || 'table'[status] = "Started"
        )
    )
)

 

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

Share some dummy data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors