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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Filtering data without getting repeated data when drilling down

Hi all, I'm currently trying to filter gross sales by specific order types in such way that if I add date and order type to the row field in a matrix it'll show the data distributed by date and order type. However, the measure seems to work only with date as follows:

jacostabarbosa_0-1683170041299.png

Once I keep drilling down to the next level which are the order types instead of only showing the order types that i need (035,036,037,038,040,041,042)it shows all of them and even worst with the same value which is wrong.

jacostabarbosa_1-1683170159263.png

 

this is my measure:

 

COF_Warranty costs =
CALCULATE(
    [Gross Sales],
    'ANZ  Sales'[Order Type]
        IN { "035", "036", "037", "038", "040", "041", "042" }
)
 
can anyone give me some hints on what needs to be added to the measure? 
Thanks 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I've modified my measure and it's working fine now

COF_Warranty costs =
CALCULATE(
    SUM('ANZ  Sales'[Gross Sales AUD]),
    FILTER(
        'ANZ  Sales',
        'ANZ  Sales'[Order Type] IN {"035", "036", "037", "038","040","041","042"}
    )
)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I've modified my measure and it's working fine now

COF_Warranty costs =
CALCULATE(
    SUM('ANZ  Sales'[Gross Sales AUD]),
    FILTER(
        'ANZ  Sales',
        'ANZ  Sales'[Order Type] IN {"035", "036", "037", "038","040","041","042"}
    )
)
lbendlin
Super User
Super User

the measure is likely fine.  It's your data model that needs fixing. The same value down a column indicates a mis-wired data model.

Anonymous
Not applicable

The model is correct it was just the incorrect measure. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.