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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Huzy001
Regular Visitor

dax query to fetch filtered row

I have a power bi dashboard, the user can filter on account id, I need a dax query to return what the filtered account id is.
The account id is in a table however the account id could be repeated mutliple times.
I have tried evaluate row in dax however returns NULL. I need this dax query to work along side power automate.

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @Huzy001 , 

 

You can use the below DAX code to show the filtered account ID

Filtered_AccountID = SELECTEDVALUE('YourTable'[AccountID])

 

If there are multiple account ID's are selected then please use the below code

Filtered_AccountID = CONCATENATEX(VALUES('YourTable'[AccountID]), 'YourTable'[AccountID], ", ")

 

If you're using Power Automate to pass the filtered result, ensure you are referencing the measure Filtered Account ID in the right context. Power Automate can extract this result via the Power BI connector.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

3 REPLIES 3
dharmendars007
Super User
Super User

Hello @Huzy001 , 

 

You can use the below DAX code to show the filtered account ID

Filtered_AccountID = SELECTEDVALUE('YourTable'[AccountID])

 

If there are multiple account ID's are selected then please use the below code

Filtered_AccountID = CONCATENATEX(VALUES('YourTable'[AccountID]), 'YourTable'[AccountID], ", ")

 

If you're using Power Automate to pass the filtered result, ensure you are referencing the measure Filtered Account ID in the right context. Power Automate can extract this result via the Power BI connector.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Selva-Salimi
Super User
Super User

hi @Huzy001 

 

what if two accountid is selected??

only one accountid can be selected at a time

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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