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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bhmiller89
Helper V
Helper V

Help with COUNT

I'm trying to determine how many opportunities had a "same day turnaround." 

 

I have a calculated column called "Days in queue" which is a datediff. 

 

Then I wrote a measure: #SameDayTurn = CALCULATE(COUNTA('dpmgr vwJMWebSalesEngQueue'[OpportunityID]), 'dpmgr vwJMWebSalesEngQueue'[DaysInQueue] = 0)    to count how many opportunities had a same day turnaround ( 0 days in queue).

 

To test the math, I created a table and filtered by the opps with same day turnaround.  Problem is, the table isn't only showing Opportunities with "DaysinQueue = 0" 

 

Am I missing something? 

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @bhmiller89,

 

According to your description, you have created a measure to count how many opportunities had a same day turnaround, and place this measure to a table visual. You only want to display Opportunities with "DaysinQueue = 0" in a table visual, right?

 

In your scenario, you can place the field [OpportunityID], [DaysInQueue] and the measure to the table visual, then add a visual level filter to filter table data. See:

 

1. Sample data:

 

z3.PNG

 

2. Before add filter:

 

z2.PNG

 

3. After add Visual level filter:

 

z4.PNG

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sean
Community Champion
Community Champion

I don't see a problem with the formula...

 

#SameDayTurn =
CALCULATE (
    COUNTA ( 'dpmgr vwJMWebSalesEngQueue'[OpportunityID] ),
    'dpmgr vwJMWebSalesEngQueue'[DaysInQueue] = 0
)

How and what did you filter?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.