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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.