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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors