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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
manojk_pbi
Helper IV
Helper IV

Need help in writing DAX Measure

Hi Friends,

 

I have below data, using it i need to show what's the percentage of published task out of total tasks. Pls advice how can we do this both in KPI chart and in table.

% of Published Tasks = Tasks with publish status / all tasks excluding Delete & withdrwl

 

Col1Col2
Task1Publish
Task2Draft
Task3WIP
Task4Deleted
Task5Deleted
Task6Withdrwl
Task7Publish
Task8Publish
Task9Publish
Task10Draft
Task11New
Task12New
1 REPLY 1
v-sdhruv
Community Support
Community Support

Hi @manojk_pbi ,
You can try this measure:

% Published Tasks =
DIVIDE(
CALCULATE(COUNTROWS(Data), Data[Col2] = "Publish"),
CALCULATE(COUNTROWS(Data), NOT(Data[Col2] IN {"Deleted", "Withdrwl"}))
)
Hope this helps!
If the response has addressed your query, please accept it as a solution  so other members can easily find it.
Thank you.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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