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
Anonymous
Not applicable

Card to reflect event price more than zero

I am trying to find the number of paying patrons/ticket (i.e. eventprice > $0) but I cannot reflect that on my card. Does anyone know how I can do that? Or what DAX formula I can use? Thanks in advance!

 

payingpatrols_powerbidax.PNG

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Just as what @lbendlin mentioned, create a measure like so:

Counts =
COUNTROWS ( FILTER ( ALLSELECTED ( 'Table' ), 'Table'[eventprice] > 0 ) )

 

Or this:

Counts =
CALCULATE ( DISTINCTCOUNT ( 'Table'[paying patrons] ), 'Table'[eventprice] > 0 )

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Just as what @lbendlin mentioned, create a measure like so:

Counts =
COUNTROWS ( FILTER ( ALLSELECTED ( 'Table' ), 'Table'[eventprice] > 0 ) )

 

Or this:

Counts =
CALCULATE ( DISTINCTCOUNT ( 'Table'[paying patrons] ), 'Table'[eventprice] > 0 )

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

lbendlin
Super User
Super User

use Countrows() with a value filter. 

 

Patrols or patrons?

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.