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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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 Kudoed Authors