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! Learn more

Reply
icturion
Resolver II
Resolver II

countrow value by group

Hi,

 

The intention is to present the number of examinations per month with the number of times that a study had been supplemented positively with the percentage of the number of positive results in relation to the number of examinations.

 

In the example below, column ID_NUMERIC is the examinations number. Column DESCRIPTION is the name of the survey and if the result positive. 

 

Does anyone have an idea how to best handle this in power bi?

 

Explain column DESCRIPTION values:

Onderzoek-1 en onderzoek-2 are the examinations

Positief tell’s if an examination returned positive

 

 

voorbeeld.PNG

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

Hi @icturion

 

Try these MEASURES

 

Total # of Exams = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Onderzoek-1")


Total # of Positives = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Positief")


%age = [Total # of Positives]/[Total # of Exams]

View solution in original post

Hi,

 

Try this

 

Total # of Exams = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Onderzoek-1"||TableName[DESCRIPTION]="Onderzoek-2")

 

Hope this helps.


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

View solution in original post

5 REPLIES 5
Zubair_Muhammad
Community Champion
Community Champion

Hi @icturion

 

Try these MEASURES

 

Total # of Exams = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Onderzoek-1")


Total # of Positives = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Positief")


%age = [Total # of Positives]/[Total # of Exams]

Hi @Zubair_Muhammad

 

thank you for the quick respons. 

 

how can I add two different studies in the first measure?values ​​are onderzoek-1 and onderzoek-2

 

 

Hi,

 

Try this

 

Total # of Exams = Calculate(Countrows(TableName),TableName[DESCRIPTION]="Onderzoek-1"||TableName[DESCRIPTION]="Onderzoek-2")

 

Hope this helps.


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

Thank you @Zubair_Muhammad and @Ashish_Mathur for the solution. it works

You are welcome.


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