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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ghouse_peer
Post Patron
Post Patron

Applying filters to get counts same as in excel

Hi Team,

I have 3 columns Date, Impacted, Status

Date columns have dates from 2020 to till date

Impacted column has Yes/No values

Status column has Inprogress and completed.

 

Requirement: i need to get count, upon applying filter on impacted column as "Yes" and Status should be "Completed"

 

whatever count we get divide that by same count which we got by appying this filter and show in percentage.

 

for ex: After applying filter we got the count as 11, now divide 11 by 11 and show in percentage.

 

Please help me with this solution/measure

 

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @ghouse_peer 

Please try this, 

Measure = 
var _status= "completed"
var _Impacted="Yes"
return  CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Impacted]=_Impacted && 'Table'[Status]=_status))

result

vxiaotang_0-1669878962758.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @ghouse_peer 

Please try this, 

Measure = 
var _status= "completed"
var _Impacted="Yes"
return  CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Impacted]=_Impacted && 'Table'[Status]=_status))

result

vxiaotang_0-1669878962758.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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