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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ravishukla20
Frequent Visitor

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
Employee
Employee

@ravishukla20,

 

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
Employee
Employee

@ravishukla20,

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.