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
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 ACCEPTED SOLUTION

Hi @modi123p 

Thank you for reaching out to the Microsoft Fabric Forum Community.


Unfortunately, DAX doesn't have a built-in way to figure out which table a selected value came from, there’s no function that can return the name of the table where that value originated.

Thanks.

View solution in original post

3 REPLIES 3
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!

 

@mark_endicott 

Thank you for checking on the post.

No... my intent is to get the name of the parameter table that holds the field values inside a measure.

 

I could check on the selected value and compare it with the list (as its only 4-5 in number) to infer the Parameter Table Name. But I was wondering if there is a cleaner way to do it. Sometimes(UNFORTUNATELY).... when I drag the Parameter fields, I see 'Table Name'[fieldName] .... is there a DAX expression that I could use to get the Table Name?

 

Hi @modi123p 

Thank you for reaching out to the Microsoft Fabric Forum Community.


Unfortunately, DAX doesn't have a built-in way to figure out which table a selected value came from, there’s no function that can return the name of the table where that value originated.

Thanks.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.