cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Dax query to calculate % of a category from using existing and display the % in new column

I have a existing cloumn in my dataset which contains text data like below type of catogeries. I am using this column to identify the source which detecting the issue, like this i do have different sources to detecet the issues. The requirement is to create a new column from "NotificationSourceType" column where the NotificationSourceType is only "Monitoring" and i want to calculate percentage of monitoring type issues and calculate the percentagen also display it in new column. This data set will refresh everyday.

 

Ex: If i have 300 issues detected by monitoring out of 700 issues then 300/700*100= 43%. I need DAX query to count "Monitoring" type issues from "NotificationSourceType" column, calculate the percentage of monitoring type issues, and dispaly percentage(%) in new column.

 

NotificationSourceType

Partner
Monitoring
Customer  
Service
Unknown
Other
1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Re: Dax query to calculate % of a category from using existing and display the % in new column

@Chandrarao

 

Try this Column

 

Calculated Column =
IF (
    TableName[NotificationSourceType] = "Monitoring",
    DIVIDE (
        CALCULATE (
            COUNT ( TableName[NotificationSourceType] ),
            TableName[NotificationSourceType] = "Monitoring"
        ),
        COUNTROWS ( TableName )
    )
)

 

 

Try my new Power BI game Cross the River

View solution in original post

1 REPLY 1
Super User III
Super User III

Re: Dax query to calculate % of a category from using existing and display the % in new column

@Chandrarao

 

Try this Column

 

Calculated Column =
IF (
    TableName[NotificationSourceType] = "Monitoring",
    DIVIDE (
        CALCULATE (
            COUNT ( TableName[NotificationSourceType] ),
            TableName[NotificationSourceType] = "Monitoring"
        ),
        COUNTROWS ( TableName )
    )
)

 

 

Try my new Power BI game Cross the River

View solution in original post

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors