cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

Re: Distinct Count Order that contain list of SKUs

Phil, is this what you are looking for?

Number of Orders Containing All Selected SKUs = 
VAR SelectedSKUs =
    { 2957, 5649 }
RETURN
    COUNTROWS (
        FILTER (
            VALUES ( Orders[OrderNo] ),
            ISEMPTY ( EXCEPT ( SelectedSKUs, CALCULATETABLE ( VALUES ( Orders[SKU] ) ) ) )
        )
    )
Highlighted
Frequent Visitor

Re: Distinct Count Order that contain list of SKUs

@OwenAuger, Fixed it myself, thats for the help.

Highlighted
Community Champion
Community Champion

Re: Distinct Count Order that contain list of SKUs

Hi Phil

 

I would actually suggest you have a separate slicer for each set of SKUs you are interested in, and Format=>Edit Interactions so certain slicers control certain visuals.

 

I edited my example pbix to show an example of this.

 

If you did want to embed a SKU filter in a measure, you could write another measure referring to the original measure that looks like:

Orders containing 2957 and 5649 = 
CALCULATE (
	[Number of Orders Containing All Selected SKUs],
	Orders[SKU] IN {2957,5649}
)

 

Owen 🙂

 


Owen Auger

Did I answer your question? Mark my post as a solution!

Connect on Twitter
Connect on LinkedIn

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors