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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Hierarchy Slicer - Return Field Values not Sum

Hi,

following is the problem: I would like to display field values in a visual card through the usage of a hierarchy slicer.
However, when picking a value from the slicer, the results presented in the visual card is the SUM of all sub hierarchies, not the field value associated with the selected value.

Example Hierarchy Slicer Setup
Dept. Group
   Dept A
   Dept B

Example Table
Dept. Group   100
Dept A             50
Dept B             50

If I click on the Slicer Dept. Group the return value is 200, but the desired outcome is 100. There is no option to turn off the sum function the visual card. 

Also, the format of the values needs to stay numbers and not converted into text.

Thanks for any tips!

1 REPLY 1
SQLbyoBI
Advocate I
Advocate I

I suspect your table structure is the problem. If you restructure your table to then I think you will get what you're looking for... more details below

 

GroupDeptAmount

Dept. Group

Dept A50
Dept. GroupDept B50

 

Create a hierarchy on Group and Dept and use that in your slicer.

Create a measure to sum the amount and put that in your card.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors