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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Redraidas1
Helper I
Helper I

Need help with Measure

I'm trying to write a measure, that would ignore one of my slicers called DealerName , however, even though I specify this requirement by using ALL, it looks like my measure still takes the aforementioend slicer into consideration and shows the incorrect figure. Is there any way to fix this?

 

CALCULATE (
DISTINCTCOUNT ( AfterSalesWorkshopData[VIN] ),
ALL(Dim_Dealer[DealerName]),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Qualifying Repair Order type] <> "Full"
),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Segment] = _Segment
)
) + 0
)
1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Redraidas1 ,

 

What's the relationship between AfterSalesWorkshopData and Dim_Dealer? Would you please try to use the following measure:

 

 

measure1 =
CALCULATE (
    DISTINCTCOUNT ( AfterSalesWorkshopData[VIN] ),
    FILTER (
        AfterSalesWorkshopData,
        AfterSalesWorkshopData[Qualifying Repair Order type] <> "Full"
    ),
    FILTER ( AfterSalesWorkshopData, AfterSalesWorkshopData[Segment] = _Segment ),
    REMOVEFILTERS ( Dim_Dealer[DealerName] )
) + 0

 

 

If it doesn't work, I also suggest to edit interaction between slicer and the visual which hold the measure.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Redraidas1 ,

 

What's the relationship between AfterSalesWorkshopData and Dim_Dealer? Would you please try to use the following measure:

 

 

measure1 =
CALCULATE (
    DISTINCTCOUNT ( AfterSalesWorkshopData[VIN] ),
    FILTER (
        AfterSalesWorkshopData,
        AfterSalesWorkshopData[Qualifying Repair Order type] <> "Full"
    ),
    FILTER ( AfterSalesWorkshopData, AfterSalesWorkshopData[Segment] = _Segment ),
    REMOVEFILTERS ( Dim_Dealer[DealerName] )
) + 0

 

 

If it doesn't work, I also suggest to edit interaction between slicer and the visual which hold the measure.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Redraidas1 , Try

 

CALCULATE (
DISTINCTCOUNT ( AfterSalesWorkshopData[VIN] ),
ALL(Dim_Dealer),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Qualifying Repair Order type] <> "Full"
),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Segment] = _Segment
)
) + 0
)

 

or

 

CALCULATE (
DISTINCTCOUNT ( AfterSalesWorkshopData[VIN] ),
removefilters(Dim_Dealer[DealerName]),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Qualifying Repair Order type] <> "Full"
),
FILTER (
AfterSalesWorkshopData,
AfterSalesWorkshopData[Segment] = _Segment
)
) + 0
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Doesn't work, still won't ignore Dim_Dealer[DealerName] 

😞

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.