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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nika777
Frequent Visitor

Display comment based on selection

Dear Power BI User, 

 

please can you help me with my question?

I have a table:

ProjectStartStopComment
A1-Jan-2223-Mar-22Comment A
B25-Jun-2217-Oct-23Comment B
C8-Feb-235-May-23Comment C

Projects A, B, C are displayed as bar charts (with respective start and stop dates). I want to get the comment displayed depending on the selected project. E.g. if I select the Project A bar (in the bar chart visual), I want to get Comment A displayed. As the comment text can be lengthy, I want to display the respective comment as a separate text box or table under the bar chart visual.

 

Is this possible?

Sorry, I am new to Power BI (learning) and might need a step by step help.

Thank you so much for your valuable time to help me

With best regards

Nika

1 ACCEPTED SOLUTION
rajulshah
Resident Rockstar
Resident Rockstar

@Nika777 

 

You can create a measure as follows:

Measure = SELECTEDVALUE ( Table [ Project ] )

 

And you can display the same in the table or a card, I don't think so you would be able to plot the measure in a text box.

Please let me know if this didn't help.

View solution in original post

3 REPLIES 3
rajulshah
Resident Rockstar
Resident Rockstar

@Nika777 

 

You can create a measure as follows:

Measure = SELECTEDVALUE ( Table [ Project ] )

 

And you can display the same in the table or a card, I don't think so you would be able to plot the measure in a text box.

Please let me know if this didn't help.

Dear Rajulshah,

many thanks for your quick reply. Sorry, that I am such a beginner. Please can you guide me how to implement the Measure formula? Do I need to do this in the Power Query Editor?

Many thanks

Nika

Thank you, I could figure out 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors