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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors