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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Counting filtered results gets duplicate values

Hi eveyrone. I'm having an issue where after I filter some dollar values, I'm getting duplicate counts.  As you can see in the photo, the dollar values are filtered by the amounts but quite a few of them are saying "True". This would obviously give me more than the total amount of the documents that I actually have. Here is the formula for the filters:

 

 "to_500 =
CALCULATE(
DISTINCTCOUNT('Tablename'[DOCUMENT]),
'tablename'[Value] <= 500
&& 'Tablename'[Value] > 0)  "

 

 

doc.PNG

 

 

Any help would be appreciated.

 

Thanks

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Have you solved the problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

By my tests based on your image and your formula, I cannot reproduce your issue.

The measure is created with aother formula. You also could have a try with it.

Measure =
CALCULATE (
    DISTINCTCOUNT ( Table1[Document] ),
    FILTER ( 'Table1', 'Table1'[Value] <= 500 && 'Table1'[Value] > 0 )
)

Capture.PNG

In addition, please check if you have install the latest version of Power BI Desktop 2.68.5432.841.

If you still need help, please share your data sample as table format and your desired output so that we could help further on it.

Best Regards,

Cherry

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.