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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Removefilter on sum

Hello I have the below measure. The results in my matrix are fine until I add a filter in the filter menu for the quantity. 
Mesure2 =
calculate(
DISTINCTCOUNT('Juin 2020'[Order]),
REMOVEFILTERS('Juin 2020'[Product Code],'Juin 2020'[Order]),
ALLSELECTED('Juin 2020'[Date]))
 
I tried to add 'Juin 2020'[Quantity] in Removefilters but it is not working. I think it doesn't recognize the fact that it is a sum. What can I do? Thank you
 
guillaume_boism_2-1636574555619.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found the problem. Couting dates with hours in the creates problem. Don't do that!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I found the problem. Couting dates with hours in the creates problem. Don't do that!

VahidDM
Super User
Super User

Hi @Anonymous 

 

Can you post sample data as text and expected output?
Not enough information to go on;

please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables

Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.