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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mekaelj
Helper II
Helper II

Slicer by brand

Hi,

 

I have several measures where I can see for example sales quantity based on the different brands of my business. The total sales quantity is connected to two other queries where I have data that helps me separate the different brands.

 

My measures look like this:

 

Qty Product 1 = CALCULATE(SUM(Sales[SalesQty]);Dim_Items[Product group]="group1";Dim_Items[Brand]="Brand1")

Qty Product 2 = CALCULATE(SUM(FactSalesInvoiceLines[SalesQty]);Dim_Items[Product group]="group2";DimOptions[Brand]="Brand2")

 

So as you can see I have to get data from both dimoptions and dim_items to be able to differentiate between the products. Now, I want to create a slicer where I can sort the items based on brand. Seeing as I get my brands from two different queries, I don't know how to do this. Do I merge them all into on query somehow and then create a slicer through that? I tried doing so but when I then created my slicer and sorted by brand it didn't actually filter at all. Clearly I've gone wrong somewhere along the way.

 

Cheers

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mekaelj

 

If you want to use a slicer to filter both "Brand1" and "Brand2", you have to union two queries into one. You can achieve it via either DAX or Power Query.

 

Reference:
UNION Function (DAX)

Table.Combine

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mekaelj

 

If you want to use a slicer to filter both "Brand1" and "Brand2", you have to union two queries into one. You can achieve it via either DAX or Power Query.

 

Reference:
UNION Function (DAX)

Table.Combine

 

Regards,

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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