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! Request now

Reply
Anonymous
Not applicable

Count -> New Measure value

Hi Team,

 

I have done status column and next I want to count based on status column values for trend analysis.

 

I want the count of "Above" and "below" separatly. 

 

(New Measure)
Status = if([Gap]>0,"Above","Below")

 

Capture.PNG

Thanks,

KV's

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Anonymous 

Try these measures:

Status = if(MAX('Table'[GAP])>0,"Above","Below")

Count of above = CALCULATE(COUNTROWS('Table'),filter('Table',[Status]="Above"))

Count of Below = CALCULATE(COUNTROWS('Table'),filter('Table',[Status]="Below"))

 

The outout would be as follow:

VahidDM_0-1629258219431.png

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_1-1629258227619.png !!

View solution in original post

4 REPLIES 4
VahidDM
Super User
Super User

Hi @Anonymous 

Try these measures:

Status = if(MAX('Table'[GAP])>0,"Above","Below")

Count of above = CALCULATE(COUNTROWS('Table'),filter('Table',[Status]="Above"))

Count of Below = CALCULATE(COUNTROWS('Table'),filter('Table',[Status]="Below"))

 

The outout would be as follow:

VahidDM_0-1629258219431.png

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_1-1629258227619.png !!

Ashish_Mathur
Super User
Super User

Hi,

If Status is a calculated column in your dataset, then in a Table visual just drag the Status column and write this measure

Count = countrows(data)

Hope this helps.


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

Hi @Ashish_Mathur 
Thanks for your help,

 

No, Status is new measure.

 

Thanks,

KV's 

Hi,

Assuming Gap is a calculated column, try these measures:

Status = if(MAX('Table'[GAP])>0,"Above","Below")
Count of above = COUNTROWS(filter('Table',[Status]="Above"))
Count of Below = COUNTROWS(filter('Table',[Status]="Below"))

Hope this helps. 


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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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