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
Anonymous
Not applicable

Hierarchy slicer Calculation

Hi there,

Now when the Slicer got update to Hierarchy slicer in the old days I did

Calculate(
sum(table[column]),
filter (Table,column = Selected slicer1 value),

filter (table,Column = Selected slicer 2 value) etc..

 

How to I work with hierarchy slicer if I have lets say Stage City and other column from different table lets say Color for example

How do you combime all of these?

Thanks,

Oded Dror

1 ACCEPTED SOLUTION
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous,

 

Here is the solution,

Calculate(
sum(table[column]),
filter (Table,column = Selectedvalue(Stage City)),

filter (table,Column = Selectedvalue(Color ))

 

You no need to change your existing approach for these cases since we are referencing the column value. So It will work fine!

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

If the 'Table' have realationship with another table used in the hierarchy slicer, it should calculate the result (Sum('Table'[Value]) automatically.


If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi there,

 

Thank you both 

 

Thanks

Oded Dror

 

 

SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous,

 

Here is the solution,

Calculate(
sum(table[column]),
filter (Table,column = Selectedvalue(Stage City)),

filter (table,Column = Selectedvalue(Color ))

 

You no need to change your existing approach for these cases since we are referencing the column value. So It will work fine!

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.