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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
modi123p
Microsoft Employee
Microsoft Employee

How to get the name of Parameter Field Table using DAX

Hi,

 

I m using 2 Parameter Tables on the page and would like to use single measure to control the elements to be displayed.

For example if I choose the parameter on the left side, it should filter the values of Parameter Fields on the right hand side.

 

I could accomplish this by creating 2 separate count measures and filtering them as below.

However, is there a way I can get the Parameter Table name[PARAM LHS/PARAM RHS]  (not the field value) so as to create a switch and handle counts in a single measure?

 

RHS_COUNT = 

var _selectedGroup = [Selected Group LHS]
RETURN SWITCH(_selectedGroup,
"C-Map" , CALCULATE(COUNTROWS('PARAM RHS'),
NOT 'PARAM RHS'[Parameter Group] IN {"Offering> *"}),
1
)

 

LHS_COUNT = 

var _selectedGroup = [Selected Group RHS]
RETURN SWITCH(_selectedGroup,
"Offering> *" , CALCULATE(COUNTROWS('PARAM LHS'),
NOT 'PARAM LHS'[Parameter Group] IN {""C-Map" }),
1
)

 

modi123p_0-1750996409588.png

 

1 REPLY 1
mark_endicott
Super User
Super User

@modi123p - If I understand your ask correctly, you want to have a 2nd slicer that shows the values of the selection from the first. If this is true, you dont need DAX, you can do this by copying the slicer and then choosing "show values of selected field" see below:

 

mark_endicott_0-1751017933528.png

 

The 2nd slicer will then take the values from the column selected in the first:

 

mark_endicott_1-1751018005720.png

 

If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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