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
maxduff59
Helper II
Helper II

Save the value of a card in a variable

Hello everybody, 

I am quite a newbie on Power Bi and I am facing a setback. I have a table with all my activities like this :

Activitiesstats_1stats_2Activity_ID
activity_110112id_1
activity_212123id_2

 

I created a card where I am displaying the ID of the activity selected. I would like to know if it was possible to create a variable which were able to contains the information (activity_ID) selected ?

Thanks in advance for your time

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @maxduff59 

 

Download this PBIX file with example

 

Yes, you can create a measure like so

 

Selected Activity ID = SELECTEDVALUE('DataTable'[Activity_ID])

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @maxduff59 

 

Download this PBIX file with example

 

Yes, you can create a measure like so

 

Selected Activity ID = SELECTEDVALUE('DataTable'[Activity_ID])

 

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
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!

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.

Top Kudoed Authors