cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ggs
New Member

Need help on DAX expression

Hi Team,

 

I have a Table, DATA in which there is a column 'Completion Status', that has four values - Complete, Incomplete, Overdue, Retraining Overdue.

I could calculate the %Complete using 

%Complete = ((COUNTROWS(FILTER('DATA',DATA[Completion Status]="Complete"))/(COUNTROWS('DATA'))))

 

Now I want to calcuate %compliance by adding one more value - Incomplete.  

 

Essentially, this need to calculate Complete+Incomplete/All 4 values of the Column%

 

Kindly help

 

Gopal

Hyderabad

1 ACCEPTED SOLUTION
rbriga
Advocate I
Advocate I

Please try: 

% Complete =(
   (
        COUNTROWS(
            FILTER(
              'DATA',
                DATA[Completion Status] IN
{"Complete", "Incomplete"}
            )
        ) /( COUNTROWS( 'DATA' ) )
    )
)

View solution in original post

2 REPLIES 2
rbriga
Advocate I
Advocate I

Please try: 

% Complete =(
   (
        COUNTROWS(
            FILTER(
              'DATA',
                DATA[Completion Status] IN
{"Complete", "Incomplete"}
            )
        ) /( COUNTROWS( 'DATA' ) )
    )
)

View solution in original post

Great, It worked.  

Gopal, Hyderabad India.  

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.