This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am having issue crafting a measure to display the total number of records based on a measure displayed in a Table. I would have thought this was easy, especially after seeing This Thread. However, my calculation is not coming out with the correct value.
Below is the data being displayed based on selected filters and relationships. It is properly displaying the expected ID's and it has the proper results for the Fix Attempts Measure. I am trying to get the total number of records that had Fix Attempts = 1. As you can see my calculation is not giving the correct result. If I set a visual Level filter for Fix Attempts =1, the rows that should make up the calculation are properly displayed.
Here is my measure
With 1 Fix =
CALCULATE(
DISTINCTCOUNT(Bugs[WorkItemId]),
FILTER(Bugs,Bugs[Fix Attempts]=1))
Here is the measure total, for the below data, which is off.
Data Table (all coming from table - Bugs)
Data filtered with Visual level filter, that shows my measure result should be 9, for the data displayed
Solved! Go to Solution.
Hi,
Try this measure
With 1 Fix = CALCULATE(DISTINCTCOUNT(Bugs[WorkItemId]),FILTER(values(bugs[id]),[Fix Attempts]=1))
Hey @EaglesFly123 ,
try the following measure:
With 1 Fix =
CALCULATE(
DISTINCTCOUNT( Bugs[WorkItemId] ),
Bugs[Fix Attempts] = 1
)
HI @selimovd
When I do that, I get an error - A function 'CALCULATE' has been involved in a True/False expression that is used as a filter expression. This is not allowed.
Hi,
Try this measure
With 1 Fix = CALCULATE(DISTINCTCOUNT(Bugs[WorkItemId]),FILTER(values(bugs[id]),[Fix Attempts]=1))
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 28 | |
| 24 | |
| 21 |