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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.