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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Need to add measures and Hierarchy on Slice

Hello Team ,

I am very New in Power BI.

1.And i have requirment user can select measure from list and when user select measures from list then only particular measures will appears on MY reports .

 

2.I have hierarchy on my dimension and i need dimension has to be come in Slice or any other method .

 

Regard's

Ravi

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

@Anonymous,

 

1.And i have requirment user can select measure from list and when user select measures from list then only particular measures will appears on MY reports .

We can create a dynamic measure to achieve this requirement. Please refer to the steps below.

  1. Sample data
    Capture.PNG
  2. Create a new table by enter data.
    Capture1.PNG
  3. Create a measure on Sales table
    Measure = 
    var selecteditem = MAX(Slicer[Slicer])
    return if(selecteditem="Sales",MAX(Sales[Sales]),MAX(Sales[Sales])-MAX(Sales[Cost]))
  4. Use this measure in your visual.
    Capture2.PNGCapture3.PNG

 

2.I have hierarchy on my dimension and i need dimension has to be come in Slice or any other method .

We can add a hierarchy level to slicer.
Capture.PNG

 

Regards,

Charlie Liao

 

View solution in original post

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

 

1.And i have requirment user can select measure from list and when user select measures from list then only particular measures will appears on MY reports .

We can create a dynamic measure to achieve this requirement. Please refer to the steps below.

  1. Sample data
    Capture.PNG
  2. Create a new table by enter data.
    Capture1.PNG
  3. Create a measure on Sales table
    Measure = 
    var selecteditem = MAX(Slicer[Slicer])
    return if(selecteditem="Sales",MAX(Sales[Sales]),MAX(Sales[Sales])-MAX(Sales[Cost]))
  4. Use this measure in your visual.
    Capture2.PNGCapture3.PNG

 

2.I have hierarchy on my dimension and i need dimension has to be come in Slice or any other method .

We can add a hierarchy level to slicer.
Capture.PNG

 

Regards,

Charlie Liao

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors