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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.